On 10/10/13 10:39 AM, Ruediger Meier wrote:
On Thursday 10 October 2013, Jeff Mahoney wrote:
On 10/10/13 9:45 AM, Ruediger Meier wrote:
On Thursday 10 October 2013, Cristian Rodríguez wrote:
El 10/10/13 06:14, Ruediger Meier escribió:
Hi,
I'm using recent factory snapshot and wonder why btrf is always loaded by initrd allthough I don't use it and it's not set in /etc/sysconfig?
cu, Rudi
because mkinitrd is dumb and does not know, if that is a concern, use dracut -H ...
Until the update to 13.1 mkinitrd never installed btrfs so my questions is why this is done now by default.
Contrary to some other opinions, it's just a bug in the mkinitrd hooks for btrfsprogs. It'll happen on any system where btrfsprogs is installed, whether btrfs is used or not.
setup-btrfs.sh doesn't test whether it's actually required for anything and boot-btrfs.sh doesn't have anything to key off to determine whether it's needed.
I'll poke at it. It should be pretty easy to fix.
Thanks.
BTW now in 13.1 the initrd wants to load a lot more modules: btrfs
Bug. Fix posted in this thread.
dm-snapshot-origin dm-mirror dm-snapshot
This happens if you're already using dm to hold your root file system. The problem is that those modules are added whether you're using them or not. Also, any dm modules that are used by active tables whether they're used by the root file system/swap or not are included automatically. Unfortunately, descending the stack to determine which modules are in use can be fragile. Every dm target's table, where the format is specific to the target type, would need to be parsed and the only benefit is not including a few modules in the initrd.
hid-holtek-kbd hid-lenovo-tpkbd hid-logitech-dj hid-ortek hid-roccat-arvo hid-roccat-isku hid-samsung hid-apple hid-belkin hid-cherry hid-ezkey hid-microsoft
These are actually in response to bug reports. There are systems that need these modules loaded in order for keyboard input to work. It might be worthwhile to see if we can load them only if keyboard input is actually needed. I'm not sure that'd be a high priority item, though.
I guess that one of the hid modules causes my system to hang (see the other thread).
How can I tell mkinitrd to skip partikular modules?
You can't. You can direct modprobe to skip modules, though, via /etc/modprobe.d/ files. -Jeff -- Jeff Mahoney SUSE Labs