summaryrefslogtreecommitdiffstats
path: root/test/TEST-63-DRACUT-CPIO
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:37 +0000
commit734d725d62d2cbe4445524448de024e3b9e7f4b3 (patch)
tree88d8385f24a0efda248b3480fe39037b85e76552 /test/TEST-63-DRACUT-CPIO
parentReleasing progress-linux version 060+5-8~progress7.99u1. (diff)
downloaddracut-734d725d62d2cbe4445524448de024e3b9e7f4b3.tar.xz
dracut-734d725d62d2cbe4445524448de024e3b9e7f4b3.zip
Merging upstream version 102.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/TEST-63-DRACUT-CPIO')
-rwxr-xr-xtest/TEST-63-DRACUT-CPIO/test.sh21
1 files changed, 8 insertions, 13 deletions
diff --git a/test/TEST-63-DRACUT-CPIO/test.sh b/test/TEST-63-DRACUT-CPIO/test.sh
index f9dff10..5bde7b0 100755
--- a/test/TEST-63-DRACUT-CPIO/test.sh
+++ b/test/TEST-63-DRACUT-CPIO/test.sh
@@ -21,28 +21,23 @@ test_dracut_cpio() {
mkdir -p "$tdir"
- # VM script to print sentinel on boot
- # write to kmsg so that sysrq messages don't race with console output
cat > "$tdir/init.sh" << EOF
-echo "Image with ${dracut_cpio_params[*]} booted successfully" > /dev/kmsg
-echo 1 > /proc/sys/kernel/sysrq
-echo o > /proc/sysrq-trigger
-sleep 20
+echo "Image with ${dracut_cpio_params[*]} booted successfully"
+poweroff -f
EOF
- "$DRACUT" -l --drivers "" \
+ test_dracut \
+ --no-kernel --drivers "" \
+ --modules "test" \
"${dracut_cpio_params[@]}" \
- --modules "bash base" \
--include "$tdir/init.sh" /lib/dracut/hooks/emergency/00-init.sh \
- --no-hostonly --no-hostonly-cmdline \
- "$tdir/initramfs" \
- || return 1
+ --install "poweroff" \
+ "$tdir/initramfs"
"$testdir"/run-qemu \
- -device i6300esb -watchdog-action poweroff \
-daemonize -pidfile "$tdir/vm.pid" \
-serial "file:$tdir/console.out" \
- -append "panic=1 oops=panic softlockup_panic=1 loglevel=7 console=ttyS0 rd.shell=1" \
+ -append "panic=1 oops=panic softlockup_panic=1 console=ttyS0 rd.shell=1" \
-initrd "$tdir/initramfs" || return 1
timeout=120