]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test(16-DMSQUASH): make it pass on arch
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Sun, 14 Aug 2022 22:46:10 +0000 (22:46 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 15 Aug 2022 05:25:54 +0000 (05:25 +0000)
Include additional kernel drivers and install squashfs-tools
into the arch container.

test/TEST-16-DMSQUASH/test.sh
test/container/Dockerfile-Arch

index cf433489a16da38c209f418d9eeade4f7494643b..5202937549adb6d5cb144dbb7b8125e34f3c275c 100755 (executable)
@@ -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
 
index 8d8e943cbb3ee51ef07a09e6603eaa42ecb1c9d4..3ddcc47ffd01efb6718e74a9aa2a43abba4740cc 100644 (file)
@@ -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