Skip to content

Commit

Permalink
test(16-DMSQUASH): make it pass on arch
Browse files Browse the repository at this point in the history
Include additional kernel drivers and install squashfs-tools
into the arch container.
  • Loading branch information
LaszloGombos authored and johannbg committed Aug 15, 2022
1 parent 3adbcc0 commit b8ffc87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/TEST-16-DMSQUASH/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/container/Dockerfile-Arch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8ffc87

Please sign in to comment.