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