Skip to content

Commit 8c78e38

Browse files
committed
boot-qemu: Always use -no-reboot
To make things easier for shutting down after a reboot (or a reboot on panic), always use -no-reboot regardless of architecture. Signed-off-by: Kees Cook <[email protected]>
1 parent 7eaecee commit 8c78e38

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

boot-qemu.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ function setup_qemu_args() {
186186
DTB=aspeed-bmc-opp-palmetto.dtb
187187
QEMU_ARCH_ARGS=(
188188
-machine palmetto-bmc
189-
-no-reboot
190189
)
191190
QEMU=(qemu-system-arm)
192191
;;
@@ -196,7 +195,6 @@ function setup_qemu_args() {
196195
DTB=aspeed-bmc-opp-romulus.dtb
197196
QEMU_ARCH_ARGS=(
198197
-machine romulus-bmc
199-
-no-reboot
200198
)
201199
QEMU=(qemu-system-arm)
202200
;;
@@ -209,7 +207,6 @@ function setup_qemu_args() {
209207
${DEBIAN} && HIGHMEM=,highmem=off
210208
QEMU_ARCH_ARGS=(
211209
-machine "virt${HIGHMEM}"
212-
-no-reboot
213210
)
214211
# It is possible to boot ARMv7 kernels under KVM on AArch64 hosts,
215212
# if it is supported. ARMv7 KVM support was ripped out of the
@@ -282,7 +279,6 @@ function setup_qemu_args() {
282279
QEMU_ARCH_ARGS=(
283280
-cpu m68040
284281
-M q800
285-
-no-reboot
286282
)
287283
QEMU=(qemu-system-m68k)
288284
;;
@@ -310,7 +306,6 @@ function setup_qemu_args() {
310306
esac
311307
ARCH=powerpc
312308
APPEND_STRING+="console=ttyS0 "
313-
QEMU_ARCH_ARGS+=(-no-reboot)
314309
QEMU_RAM=128m
315310
QEMU=(qemu-system-ppc)
316311
;;
@@ -451,6 +446,7 @@ function invoke_qemu() {
451446
set -x
452447
"${QEMU[@]}" \
453448
"${QEMU_ARCH_ARGS[@]}" \
449+
-no-reboot \
454450
-display none \
455451
-kernel "${KERNEL}" \
456452
-m "${QEMU_RAM}" \

0 commit comments

Comments
 (0)