-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): dmsquash-live test without an iso
Remove fedore specific parts and use squash filesystem as live root.
1 parent
1354d63
commit 6ee2baf
Showing
6 changed files
with
96 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ jobs: | |
"13", | ||
"14", | ||
"15", | ||
"16", | ||
"17", | ||
"20", | ||
"21", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters