Skip to content

Commit

Permalink
fix(test): dmsquash-live test without an iso
Browse files Browse the repository at this point in the history
Remove fedore specific parts and use squash filesystem as live root.
  • Loading branch information
LaszloGombos authored and johannbg committed Jun 2, 2022
1 parent 1354d63 commit 6ee2baf
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 295 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
"13",
"14",
"15",
"16",
"17",
"20",
"21",
Expand Down
22 changes: 22 additions & 0 deletions test/TEST-16-DMSQUASH/create-root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

trap 'poweroff -f' EXIT

# don't let udev and this script step on eachother's toes
for x in 64-lvm.rules 70-mdadm.rules 99-mount-rules; do
: > "/etc/udev/rules.d/$x"
done
rm -f -- /etc/lvm/lvm.conf
udevadm control --reload
set -e

udevadm settle
mkfs.ext4 -q -L dracut /dev/disk/by-id/ata-disk_root
mkdir -p /root
mount /dev/disk/by-id/ata-disk_root /root
mkdir -p /root/run /root/testdir
echo "Creating squashfs"
mksquashfs /source /root/testdir/rootfs.img -quiet
umount /root
echo "dracut-root-block-created" | dd oflag=direct,dsync of=/dev/disk/by-id/ata-disk_marker
poweroff -f
197 changes: 0 additions & 197 deletions test/TEST-16-DMSQUASH/create.py

This file was deleted.

22 changes: 0 additions & 22 deletions test/TEST-16-DMSQUASH/livecd-fedora-minimal.ks

This file was deleted.

Loading

0 comments on commit 6ee2baf

Please sign in to comment.