]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: move more execution to dracut command line
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Wed, 19 Oct 2022 02:07:56 +0000 (02:07 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 7 Nov 2022 17:04:47 +0000 (18:04 +0100)
test/TEST-03-USR-MOUNT/test.sh

index 754b9142f0114f1ae7e16448bdcb41a9ddd90318..d892c2ddd2bd36a148ad8075f62078cb9220a0b8 100755 (executable)
@@ -56,6 +56,7 @@ test_setup() {
         "$basedir"/dracut.sh -l --keep --tmpdir "$TESTDIR"/overlay/tmp \
             -m "test-root" \
             -i ./test-init.sh /sbin/init \
+            -i ./fstab /etc/fstab \
             -i "${basedir}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh" \
             -i "${basedir}/modules.d/99base/dracut-dev-lib.sh" "/lib/dracut-dev-lib.sh" \
             --no-hostonly --no-hostonly-cmdline --nomdadmconf --nohardlink \
@@ -64,8 +65,6 @@ test_setup() {
         mv "$TESTDIR"/overlay/tmp/dracut.*/initramfs/* "$initdir" && rm -rf "$TESTDIR"/overlay/tmp
 
         inst_multiple sh dmesg umount strace setsid sync
-
-        inst_simple ./fstab /etc/fstab
     )
 
     # second, install the files needed to make the root filesystem