[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] building a supermin appliance with febootstrap...



On Wed, Aug 17, 2011 at 11:34:54AM +0530, Kashyap Chamarthy wrote:
> But when I try to 'exit', I notice a kernel panic. And it just seems
> to hung there, no more budging. I had to do 'ctl a + x' to get out
> of the serial console.
> Is this expected?

As Hilko says, this is normal behaviour when the init process dies:

http://lxr.linux.no/#linux+v3.0.2/kernel/exit.c#L728

In libguestfs, our "init process" is the guestfsd daemon.  We
configure the kernel to reboot instead of panicking by adding the
kernel command line option "panic=1".

If you use a real init or systemd then this won't be an issue because
init will issue a reboot system call instead of exiting.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]