Bug 813875

Summary: exclusion of filesystems
Product: [Fedora] Fedora Reporter: Brian J. Murrell <brian>
Component: dracutAssignee: dracut-maint
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dracut-maint, harald, jonathan
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-18 17:51:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.