aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-02-15 05:34:57 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-02-15 06:51:47 +0100
commitc4e6b09c79f33303f749b2b40af51a01f168971f (patch)
tree0fe4caaebd75997de6f545fbb18acd4d180ad033
parentBump util-linux to v2.36.2 (diff)
downloadgenkernel-c4e6b09c79f33303f749b2b40af51a01f168971f.tar.gz
genkernel-c4e6b09c79f33303f749b2b40af51a01f168971f.tar.bz2
genkernel-c4e6b09c79f33303f749b2b40af51a01f168971f.zip
linuxrc: load btrfs module manually
There is no trigger/rule in UDEV/btrfs-progs to load btrfs module. The only known trigger via mount command could be too late or is maybe insufficient depending on used BTRFS {meta,}data profile. Bug: https://bugs.gentoo.org/739892 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/linuxrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index d8fee73..222dd35 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -535,6 +535,14 @@ then
FIRSTMODS="${FIRSTMODS} crc32_generic"
fi
+if [ "${ROOTFSTYPE}" = "btrfs" -o -x /sbin/btrfs ]
+then
+ # We have no mechanism to trigger btrfs module loading before UDEV's btrfs builtin
+ # will run; In addition, loading btrfs via UDEV could cause problems for slow
+ # machines, see https://github.com/dracutdevs/dracut/issues/658
+ FIRSTMODS="${FIRSTMODS} btrfs"
+fi
+
splash 'init'
cmdline_hwopts