From: Laszlo Gombos Date: Sun, 14 Aug 2022 22:46:10 +0000 (+0000) Subject: test(16-DMSQUASH): make it pass on arch X-Git-Tag: 058~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ffc87d13989f95c8f48ec64613dd9138835618;p=thirdparty%2Fdracut.git test(16-DMSQUASH): make it pass on arch Include additional kernel drivers and install squashfs-tools into the arch container. --- diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh index cf433489a..520293754 100755 --- a/test/TEST-16-DMSQUASH/test.sh +++ b/test/TEST-16-DMSQUASH/test.sh @@ -6,7 +6,7 @@ TEST_DESCRIPTION="live root on a squash filesystem" KVERSION="${KVERSION-$(uname -r)}" # Uncomment this to debug failures -# DEBUGFAIL="rd.shell rd.debug loglevel=7" +#DEBUGFAIL="rd.shell rd.debug loglevel=7" test_run() { dd if=/dev/zero of="$TESTDIR"/marker.img bs=1MiB count=1 @@ -72,6 +72,7 @@ test_setup() { # devices, volume groups, encrypted partitions, etc. "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \ --modules "rootfs-block qemu" \ + --drivers "ext4 sd_mod" \ --no-hostonly --no-hostonly-cmdline --no-early-microcode --nofscks --nomdadmconf --nohardlink --nostrip \ --force "$TESTDIR"/initramfs.makeroot "$KVERSION" || return 1 rm -rf -- "$TESTDIR"/overlay @@ -109,6 +110,7 @@ test_setup() { "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \ --modules "dmsquash-live qemu" \ --omit "rngd" \ + --drivers "ext4 sd_mod" \ --no-hostonly --no-hostonly-cmdline \ --force "$TESTDIR"/initramfs.testing "$KVERSION" || return 1 diff --git a/test/container/Dockerfile-Arch b/test/container/Dockerfile-Arch index 8d8e943cb..3ddcc47ff 100644 --- a/test/container/Dockerfile-Arch +++ b/test/container/Dockerfile-Arch @@ -9,7 +9,7 @@ RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' # Install needed packages for the dracut CI container RUN pacman --noconfirm -Sy \ - linux dash strace dhclient asciidoc cpio pigz \ + linux dash strace dhclient asciidoc cpio pigz squashfs-tools \ qemu btrfs-progs mdadm dmraid nfs-utils nfsidmap lvm2 nbd \ dhcp networkmanager multipath-tools vi tcpdump open-iscsi \ git shfmt shellcheck astyle which base-devel glibc && yes | pacman -Scc