Harald Hoyer 5f0dd7
From 0402b3777b1c64bd716f588ff7457b905e98489d Mon Sep 17 00:00:00 2001
Harald Hoyer 5f0dd7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 5f0dd7
Date: Wed, 11 Mar 2020 12:56:52 +0100
Harald Hoyer 5f0dd7
Subject: [PATCH] btrfs: force preload btrfs module
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
fixes https://github.com/dracutdevs/dracut/issues/658
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
raid6_pq and xor takes time doing benchmarking
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
[    3.983009] request_module fs-btrfs succeeded, but still no fs?
Harald Hoyer 5f0dd7
---
Harald Hoyer 5f0dd7
 modules.d/90btrfs/module-setup.sh | 4 +++-
Harald Hoyer 5f0dd7
 1 file changed, 3 insertions(+), 1 deletion(-)
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh
Harald Hoyer 5f0dd7
index b0d0058b..66a254e1 100755
Harald Hoyer 5f0dd7
--- a/modules.d/90btrfs/module-setup.sh
Harald Hoyer 5f0dd7
+++ b/modules.d/90btrfs/module-setup.sh
Harald Hoyer 5f0dd7
@@ -48,5 +48,7 @@ install() {
Harald Hoyer 5f0dd7
 
Harald Hoyer 5f0dd7
     inst_multiple -o btrfsck btrfs-zero-log
Harald Hoyer 5f0dd7
     inst $(command -v btrfs) /sbin/btrfs
Harald Hoyer 5f0dd7
+    # Hack for slow machines
Harald Hoyer 5f0dd7
+    # see https://github.com/dracutdevs/dracut/issues/658
Harald Hoyer 5f0dd7
+    echo "rd.driver.pre=btrfs" > ${initdir}/etc/cmdline.d/00-btrfs.conf
Harald Hoyer 5f0dd7
 }
Harald Hoyer 5f0dd7
-
Harald Hoyer 5f0dd7