46e28b
From 37e73a30c5b75a57de9e2bb6843eb9a1dab12abf Mon Sep 17 00:00:00 2001
46e28b
From: Laszlo Gombos <laszlo.gombos@gmail.com>
46e28b
Date: Sun, 14 Aug 2022 22:46:10 +0000
46e28b
Subject: [PATCH] test(16-DMSQUASH): make it pass on arch
46e28b
46e28b
Include additional kernel drivers and install squashfs-tools
46e28b
into the arch container.
46e28b
46e28b
(cherry picked from commit b8ffc87d13989f95c8f48ec64613dd9138835618)
46e28b
46e28b
Related: #2135060
46e28b
---
46e28b
 test/TEST-16-DMSQUASH/test.sh  | 4 +++-
46e28b
 test/container/Dockerfile-Arch | 2 +-
46e28b
 2 files changed, 4 insertions(+), 2 deletions(-)
46e28b
46e28b
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
46e28b
index cf433489..52029375 100755
46e28b
--- a/test/TEST-16-DMSQUASH/test.sh
46e28b
+++ b/test/TEST-16-DMSQUASH/test.sh
46e28b
@@ -6,7 +6,7 @@ TEST_DESCRIPTION="live root on a squash filesystem"
46e28b
 KVERSION="${KVERSION-$(uname -r)}"
46e28b
 
46e28b
 # Uncomment this to debug failures
46e28b
-# DEBUGFAIL="rd.shell rd.debug loglevel=7"
46e28b
+#DEBUGFAIL="rd.shell rd.debug loglevel=7"
46e28b
 
46e28b
 test_run() {
46e28b
     dd if=/dev/zero of="$TESTDIR"/marker.img bs=1MiB count=1
46e28b
@@ -72,6 +72,7 @@ test_setup() {
46e28b
     # devices, volume groups, encrypted partitions, etc.
46e28b
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
46e28b
         --modules "rootfs-block qemu" \
46e28b
+        --drivers "ext4 sd_mod" \
46e28b
         --no-hostonly --no-hostonly-cmdline --no-early-microcode --nofscks --nomdadmconf --nohardlink --nostrip \
46e28b
         --force "$TESTDIR"/initramfs.makeroot "$KVERSION" || return 1
46e28b
     rm -rf -- "$TESTDIR"/overlay
46e28b
@@ -109,6 +110,7 @@ test_setup() {
46e28b
     "$basedir"/dracut.sh -l -i "$TESTDIR"/overlay / \
46e28b
         --modules "dmsquash-live qemu" \
46e28b
         --omit "rngd" \
46e28b
+        --drivers "ext4 sd_mod" \
46e28b
         --no-hostonly --no-hostonly-cmdline \
46e28b
         --force "$TESTDIR"/initramfs.testing "$KVERSION" || return 1
46e28b
 
46e28b
diff --git a/test/container/Dockerfile-Arch b/test/container/Dockerfile-Arch
46e28b
index 922b8ede..ac1513a1 100644
46e28b
--- a/test/container/Dockerfile-Arch
46e28b
+++ b/test/container/Dockerfile-Arch
46e28b
@@ -9,7 +9,7 @@ RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)'
46e28b
 
46e28b
 # Install needed packages for the dracut CI container
46e28b
 RUN pacman --noconfirm -Sy \
46e28b
-    linux dash strace dhclient asciidoc cpio pigz \
46e28b
+    linux dash strace dhclient asciidoc cpio pigz squashfs-tools \
46e28b
     qemu btrfs-progs mdadm dmraid nfs-utils nfsidmap lvm2 nbd \
46e28b
     dhcp networkmanager multipath-tools vi tcpdump open-iscsi \
46e28b
     git shfmt shellcheck astyle which base-devel && yes | pacman  -Scc
46e28b