Bug 813875 - exclusion of filesystems
Summary: exclusion of filesystems
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: dracut-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-18 16:06 UTC by Brian J. Murrell
Modified: 2012-04-18 17:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-18 17:51:04 UTC
Type: Bug


Attachments (Terms of Use)

Description Brian J. Murrell 2012-04-18 16:06:15 UTC
Description of problem:
Right in /usr/share/dracut/modules.d/90kernel-modules/installkernel there is an admission of the need for a feature whereby filesystems (and other modules probably) can indicate they are optional and likely should not be included in an initramfs if not being used as the root filesystem:

            # hardcoded list of exceptions
            # to save a lot of space
            rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2

There should be a generic mechanism where modules/filesystems can opt out of being put into an initramfs unless required (i.e. to mount root).  The fact that you hardcoded one supports my assertion, IMHO.

Comment 1 Harald Hoyer 2012-04-18 17:51:04 UTC
That code is not in there anymore.

Instead it moved to the config file.
$ fgrep omit_drivers /etc/dracut.conf.d/01-dist.conf 
omit_drivers+=" .*/fs/ocfs/.* "


Feel free to create your own config file with a regexp to omit any kernel driver.


Note You need to log in before you can comment on or make changes to this bug.