From: Richard Jones Date: Fri, 8 May 2009 07:32:26 +0000 (+0100) Subject: Force qemu quit when kernel panics (Charles Duffy). X-Git-Tag: 1.0.21~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=f78de847966ce143c39f640a4ebecfa4b5236713;p=libguestfs.git Force qemu quit when kernel panics (Charles Duffy). --- diff --git a/src/guestfs.c b/src/guestfs.c index c2af08c..9060c11 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -788,7 +788,7 @@ guestfs_launch (guestfs_h *g) /* Linux kernel command line. */ snprintf (append, sizeof append, - "console=ttyS0 guestfs=%s:%d%s", + "panic=1 console=ttyS0 guestfs=%s:%d%s", VMCHANNEL_ADDR, VMCHANNEL_PORT, g->verbose ? " guestfs_verbose=1" : ""); @@ -799,6 +799,7 @@ guestfs_launch (guestfs_h *g) #if 0 add_cmdline (g, "-no-kqemu"); /* Avoids a warning. */ #endif + add_cmdline (g, "-no-reboot"); /* Force exit instead of reboot on panic */ add_cmdline (g, "-kernel"); add_cmdline (g, (char *) kernel); add_cmdline (g, "-initrd");