qemu-sanity-check/0003-qemu-Use-oops-panic-pa...

30 lines
792 B
Diff

From 32c2ebeebf59ea0d4c57f9054b181197a573620e Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 22 Aug 2013 15:58:16 +0100
Subject: [PATCH 3/4] qemu: Use oops=panic panic=-1
panic=-1 causes the kernel to reboot immediately without
waiting.
oops=panic turns kernel OOPS into a panic.
---
qemu-sanity-check.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-sanity-check.in b/qemu-sanity-check.in
index 24ce8ef..712fd8b 100644
--- a/qemu-sanity-check.in
+++ b/qemu-sanity-check.in
@@ -146,7 +146,7 @@ argv[$((i++))]="$kernel"
argv[$((i++))]="-initrd"
argv[$((i++))]="$initrd"
argv[$((i++))]="-append"
-argv[$((i++))]="console=ttyS0 panic=1"
+argv[$((i++))]="console=ttyS0 oops=panic panic=-1"
#echo "${argv[@]}"
--
1.8.3.1