712866
From c984ddda6a41c57f579c6d06fdc7e767395e41ac Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Fri, 24 Oct 2014 13:19:34 +0200
712866
Subject: [PATCH] test: add "fs-lib" to dracut module list
712866
712866
(cherry picked from commit eda73c0ad2cfc6a9bc8dc429b1a6fcd873e3e1c2)
712866
---
712866
 test/TEST-01-BASIC/test.sh        | 2 +-
712866
 test/TEST-02-SYSTEMD/test.sh      | 2 +-
712866
 test/TEST-03-USR-MOUNT/test.sh    | 2 +-
712866
 test/TEST-04-FULL-SYSTEMD/test.sh | 2 +-
712866
 test/TEST-10-RAID/test.sh         | 4 ++--
712866
 test/TEST-11-LVM/test.sh          | 2 +-
712866
 test/TEST-12-RAID-DEG/test.sh     | 2 +-
712866
 test/TEST-13-ENC-RAID-LVM/test.sh | 2 +-
712866
 test/TEST-14-IMSM/test.sh         | 2 +-
712866
 test/TEST-15-BTRFSRAID/test.sh    | 2 +-
712866
 test/TEST-17-LVM-THIN/test.sh     | 2 +-
712866
 test/TEST-20-NFS/test.sh          | 2 +-
712866
 test/TEST-40-NBD/test.sh          | 4 ++--
712866
 test/TEST-50-MULTINIC/test.sh     | 2 +-
712866
 14 files changed, 16 insertions(+), 16 deletions(-)
712866
712866
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
5c6c2a
index 5ee6d234..02ebc231 100755
712866
--- a/test/TEST-01-BASIC/test.sh
712866
+++ b/test/TEST-01-BASIC/test.sh
712866
@@ -62,7 +62,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash udev-rules base rootfs-block fs-lib kernel-modules fs-lib" \
712866
 	-d "piix ide-gd_mod ata_piix ext3 sd_mod" \
712866
         --nomdadmconf \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
5c6c2a
index 2ccf8e69..2a8ed6b5 100755
712866
--- a/test/TEST-02-SYSTEMD/test.sh
712866
+++ b/test/TEST-02-SYSTEMD/test.sh
712866
@@ -58,7 +58,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext3 sd_mod" \
712866
         --nomdadmconf \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
5c6c2a
index ef74d402..b8231fed 100755
712866
--- a/test/TEST-03-USR-MOUNT/test.sh
712866
+++ b/test/TEST-03-USR-MOUNT/test.sh
712866
@@ -89,7 +89,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash udev-rules btrfs base rootfs-block kernel-modules" \
712866
+	-m "dash udev-rules btrfs base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
712866
         --nomdadmconf \
712866
         --nohardlink \
712866
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
5c6c2a
index 3eeb8406..aa83122c 100755
712866
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
712866
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
712866
@@ -232,7 +232,7 @@ EOF
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash udev-rules btrfs base rootfs-block kernel-modules" \
712866
+	-m "dash udev-rules btrfs base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
712866
         --nomdadmconf \
712866
         --nohardlink \
712866
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
5c6c2a
index b17e912c..d79d5cd4 100755
712866
--- a/test/TEST-10-RAID/test.sh
712866
+++ b/test/TEST-10-RAID/test.sh
712866
@@ -5,7 +5,7 @@ KVERSION=${KVERSION-$(uname -r)}
712866
 
712866
 # Uncomment this to debug failures
712866
 #DEBUGFAIL="rd.shell rd.udev.log-priority=debug loglevel=70 systemd.log_target=kmsg"
712866
-#DEBUGFAIL="rd.break rd.shell"
712866
+#DEBUGFAIL="rd.break rd.shell rd.debug debug"
712866
 test_run() {
712866
     DISKIMAGE=$TESTDIR/TEST-10-RAID-root.img
712866
     $testdir/run-qemu \
712866
@@ -60,7 +60,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash crypt lvm mdraid udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash crypt lvm mdraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
712866
         --nomdadmconf \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
5c6c2a
index 6f2461c9..732d0c8f 100755
712866
--- a/test/TEST-11-LVM/test.sh
712866
+++ b/test/TEST-11-LVM/test.sh
712866
@@ -57,7 +57,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash lvm mdraid udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash lvm mdraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
     rm -rf -- $TESTDIR/overlay
712866
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
5c6c2a
index 26316210..87fe542f 100755
712866
--- a/test/TEST-12-RAID-DEG/test.sh
712866
+++ b/test/TEST-12-RAID-DEG/test.sh
712866
@@ -98,7 +98,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash crypt lvm mdraid udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash crypt lvm mdraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
     rm -rf -- $TESTDIR/overlay
712866
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
5c6c2a
index 51021420..129620b1 100755
712866
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
712866
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
712866
@@ -94,7 +94,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash crypt lvm mdraid udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash crypt lvm mdraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
     rm -rf -- $TESTDIR/overlay
712866
diff --git a/test/TEST-14-IMSM/test.sh b/test/TEST-14-IMSM/test.sh
5c6c2a
index 532c3489..ad0cf7b0 100755
712866
--- a/test/TEST-14-IMSM/test.sh
712866
+++ b/test/TEST-14-IMSM/test.sh
712866
@@ -86,7 +86,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash lvm mdraid dmraid udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash lvm mdraid dmraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext2 sd_mod dm-multipath dm-crypt dm-round-robin faulty linear multipath raid0 raid10 raid1 raid456" \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
     rm -rf -- $TESTDIR/overlay
712866
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
5c6c2a
index 3fc1d459..71f5703a 100755
712866
--- a/test/TEST-15-BTRFSRAID/test.sh
712866
+++ b/test/TEST-15-BTRFSRAID/test.sh
712866
@@ -58,7 +58,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash btrfs udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash btrfs udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix btrfs sd_mod" \
712866
         --nomdadmconf \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
diff --git a/test/TEST-17-LVM-THIN/test.sh b/test/TEST-17-LVM-THIN/test.sh
5c6c2a
index 0cfce199..4c904b0a 100755
712866
--- a/test/TEST-17-LVM-THIN/test.sh
712866
+++ b/test/TEST-17-LVM-THIN/test.sh
712866
@@ -57,7 +57,7 @@ test_setup() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-	-m "dash lvm mdraid udev-rules base rootfs-block kernel-modules" \
712866
+	-m "dash lvm mdraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
 	-d "piix ide-gd_mod ata_piix ext2 sd_mod" \
712866
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
     rm -rf -- $TESTDIR/overlay
712866
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
5c6c2a
index 4f21d451..7b5e3c5d 100755
712866
--- a/test/TEST-20-NFS/test.sh
712866
+++ b/test/TEST-20-NFS/test.sh
712866
@@ -340,7 +340,7 @@ test_setup() {
712866
 
712866
     # Make server's dracut image
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-        -m "dash udev-rules base rootfs-block debug kernel-modules watchdog" \
712866
+        -m "dash udev-rules base rootfs-block fs-lib debug kernel-modules watchdog" \
712866
         -d "af_packet piix ide-gd_mod ata_piix ext3 sd_mod e1000 i6300esb" \
712866
         -f $TESTDIR/initramfs.server $KVERSION || return 1
712866
 
712866
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
5c6c2a
index 7cf64b15..59494ed8 100755
712866
--- a/test/TEST-40-NBD/test.sh
712866
+++ b/test/TEST-40-NBD/test.sh
712866
@@ -226,7 +226,7 @@ make_encrypted_root() {
712866
     # We do it this way so that we do not risk trashing the host mdraid
712866
     # devices, volume groups, encrypted partitions, etc.
712866
     $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-        -m "dash crypt lvm mdraid udev-rules base rootfs-block kernel-modules" \
712866
+        -m "dash crypt lvm mdraid udev-rules base rootfs-block fs-lib kernel-modules" \
712866
         -d "piix ide-gd_mod ata_piix ext2 ext3 sd_mod" \
712866
         -f $TESTDIR/initramfs.makeroot $KVERSION || return 1
712866
     rm -rf -- $TESTDIR/overlay
712866
@@ -352,7 +352,7 @@ test_setup() {
712866
     )
712866
 
712866
     sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
712866
-        -m "dash udev-rules rootfs-block base debug kernel-modules" \
712866
+        -m "dash udev-rules rootfs-block fs-lib base debug kernel-modules" \
712866
         -d "af_packet piix ide-gd_mod ata_piix ext2 ext3 sd_mod e1000" \
712866
         -f $TESTDIR/initramfs.server $KVERSION || return 1
712866
 
712866
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
5c6c2a
index add849c1..3c6003b4 100755
712866
--- a/test/TEST-50-MULTINIC/test.sh
712866
+++ b/test/TEST-50-MULTINIC/test.sh
712866
@@ -264,7 +264,7 @@ test_setup() {
712866
 
712866
     # Make server's dracut image
712866
     $basedir/dracut.sh -l -i "$TESTDIR"/overlay / \
712866
-        -m "dash udev-rules base rootfs-block debug kernel-modules watchdog" \
712866
+        -m "dash udev-rules base rootfs-block fs-lib debug kernel-modules watchdog" \
712866
         -d "af_packet piix ide-gd_mod ata_piix ext3 sd_mod nfsv2 nfsv3 nfsv4 nfs_acl nfs_layout_nfsv41_files nfsd e1000 i6300esb ib700wdt" \
712866
         -f "$TESTDIR"/initramfs.server "$KVERSION" || return 1
712866