diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 10:33:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-26 10:33:12 +0000 |
commit | c00ecb2892f783ed18c2f62772665d86ea66a252 (patch) | |
tree | d4f8f0a3e76745c861141e462bd80850187bb88e /test/run-qemu | |
parent | Releasing progress-linux version 102-3~progress7.99u1. (diff) | |
download | dracut-c00ecb2892f783ed18c2f62772665d86ea66a252.tar.xz dracut-c00ecb2892f783ed18c2f62772665d86ea66a252.zip |
Merging upstream version 103.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/run-qemu')
-rwxr-xr-x | test/run-qemu | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/run-qemu b/test/run-qemu index 149a407..5c9ee5d 100755 --- a/test/run-qemu +++ b/test/run-qemu @@ -4,13 +4,6 @@ export PATH=/usr/sbin:/usr/bin:/sbin:/bin ARCH="${ARCH-$(uname -m)}" - -case "$ARCH" in - amd64 | i?86 | x86_64) - QEMU_CPU="IvyBridge-v2" - ;; -esac - QEMU_CPU="${QEMU_CPU:-max}" [[ -x /usr/bin/qemu ]] && BIN=/usr/bin/qemu && ARGS=(-cpu "$QEMU_CPU") @@ -43,12 +36,17 @@ case "$ARCH" in esac # Provide rng device sourcing the hosts /dev/urandom and other standard parameters -ARGS+=(-smp 2 -m 1024 -nodefaults -vga none -display none -no-reboot -device i6300esb -watchdog-action poweroff -device virtio-rng-pci) +ARGS+=(-smp 2 -m 2048 -nodefaults -vga none -display none -no-reboot -watchdog-action poweroff -device virtio-rng-pci) if ! [[ $* == *-daemonize* ]] && ! [[ $* == *-daemonize* ]]; then ARGS+=(-serial stdio) fi +# virtual hardware watchdog not available on s390x +if [[ $ARCH != "s390x" ]]; then + ARGS+=(-device i6300esb) +fi + KVERSION=${KVERSION-$(uname -r)} VMLINUZ="/lib/modules/${KVERSION}/vmlinuz" |