On 10/10/13 11:05 AM, Ruediger Meier wrote:
On Thursday 10 October 2013, Jeff Mahoney wrote:
On 10/10/13 10:32 AM, 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.
Ok, all that should be needed is adding the following to the end of the comments section in /lib/mkinitrd/scripts/boot-btrfs.sh. All of my 13.1 installs use a btrfs root and I've confirmed it works as expected there. Can someone with a different rootfs test and confirm it doesn't include the btrfs module?
---->8---- #%if: "$rootfstype" = "btrfs" ----8<----
All that's needed is to run mkinitrd afterwards and confirm that the btrfs module isn't included. Once I get confirmation, I'll submit a new btrfsprogs package with that fix.
This works. btrfs is not included anymore. Later this evening I will test rebooting. Could also be that "btrfs dev scan" was responsible for hanging the long time at boot.
Yeah, I think we're gonna have to do something about the unqualified "btrfs dev scan" there. Otherwise we're gonna run into trouble with systems that have discovered lots of devices while looking for the root file system. mdadm has solved this with a config file that specifies which devices to search. I suppose a potential headache with this approach is that, when we start supporting multiple device volumes, if a new device is added to the root file system, the initrd will have to be regenerated. I'm not sure that's a great approach. -Jeff -- Jeff Mahoney SUSE Labs