]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: move more makeroot dependencies into test-makeroot dracut module
authorHenrik Gombos <henrik99999@gmail.com>
Sun, 21 May 2023 13:56:46 +0000 (13:56 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Wed, 7 Jun 2023 14:32:30 +0000 (16:32 +0200)
modules.d/80test-makeroot/module-setup.sh
test/TEST-01-BASIC/test.sh
test/TEST-02-SYSTEMD/test.sh
test/TEST-03-USR-MOUNT/test.sh
test/TEST-04-FULL-SYSTEMD/test.sh
test/TEST-16-DMSQUASH/test.sh

index 7b19ef36697ce4207a674f744c78be9267056016..eb6fb741dafb96134a45358fc6abfc75a825360d 100755 (executable)
@@ -6,7 +6,11 @@ check() {
 }
 
 depends() {
-    echo "qemu"
+    echo "dash rootfs-block kernel-modules qemu"
+}
+
+installkernel() {
+    instmods piix ide-gd_mod ata_piix ext4 sd_mod
 }
 
 install() {
index 5e19278ebe8dd41bd2f09bb72dd89377bd98c77b..b877dbdf57fec4711f5f0f140d53a61bedcd6e26 100755 (executable)
@@ -37,8 +37,7 @@ test_setup() {
     # We do it this way so that we do not risk trashing the host mdraid
     # devices, volume groups, encrypted partitions, etc.
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
-        -m "test-makeroot dash rootfs-block kernel-modules" \
-        -d "piix ide-gd_mod ata_piix ext4 sd_mod" \
+        -m "test-makeroot" \
         -I "mkfs.ext4" \
         -i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
         --nomdadmconf \
index b574951dfe68f6d9378e00e2ec45244260ceee40..d161905bd326d4b15d15ee362badc0bd38cda167 100755 (executable)
@@ -39,8 +39,7 @@ test_setup() {
     # We do it this way so that we do not risk trashing the host mdraid
     # devices, volume groups, encrypted partitions, etc.
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
-        -m "test-makeroot dash rootfs-block kernel-modules qemu" \
-        -d "piix ide-gd_mod ata_piix ext4 sd_mod" \
+        -m "test-makeroot" \
         -I "mkfs.ext4" \
         -i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
         --nomdadmconf \
index 029d12f0fccf003b6b5b95b3d0ddf11c43d380fb..49ee92dabf0e20f00c71d9c6243708f3a12f2a02 100755 (executable)
@@ -56,8 +56,7 @@ test_setup() {
     # We do it this way so that we do not risk trashing the host mdraid
     # devices, volume groups, encrypted partitions, etc.
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
-        -m "test-makeroot dash btrfs rootfs-block kernel-modules" \
-        -d "piix ide-gd_mod ata_piix btrfs sd_mod" \
+        -m "test-makeroot" \
         -I "mkfs.btrfs" \
         -i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
         --nomdadmconf \
index f54f7ebb579f6ab5331f5e6fe2b0292f4ac1eed2..c19e003e50766f5689efe6f6cafc7ef3081070fc 100755 (executable)
@@ -117,9 +117,8 @@ EOF
     # We do it this way so that we do not risk trashing the host mdraid
     # devices, volume groups, encrypted partitions, etc.
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
-        -m "test-makeroot bash btrfs rootfs-block kernel-modules qemu" \
-        -d "piix ide-gd_mod ata_piix btrfs sd_mod" \
-        -I "mkfs.btrfs btrfs sync" \
+        -m "test-makeroot bash btrfs" \
+        -I "mkfs.btrfs" \
         -i ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
         --nomdadmconf \
         --nohardlink \
index 30b08b0f7c8cb54dbda9b134c3f081d947c2e6ca..e781263a572417f760c43f35ca42d6da879b2350 100755 (executable)
@@ -71,8 +71,7 @@ test_setup() {
     # We do it this way so that we do not risk trashing the host mdraid
     # devices, volume groups, encrypted partitions, etc.
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
-        --modules "test-makeroot rootfs-block qemu" \
-        --drivers "ext4 sd_mod" \
+        --modules "test-makeroot" \
         --install "sfdisk mkfs.ext4 mksquashfs" \
         --include ./create-root.sh /lib/dracut/hooks/initqueue/01-create-root.sh \
         --no-hostonly --no-hostonly-cmdline --no-early-microcode --nofscks --nomdadmconf --nohardlink --nostrip \