init: Try to call reboot(2) to reboot the system from the initramfs.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 22 Aug 2013 14:40:57 +0000 (15:40 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 22 Aug 2013 14:59:57 +0000 (15:59 +0100)
commit1a2ef4ef4740caeb0357c433004256ce33444a69
tree4efa877d1e0847733afee0eda32255add788096b
parentbee9962b268ea97415e50ceaeae2a05494033e3b
init: Try to call reboot(2) to reboot the system from the initramfs.

For some reason, panic=1 is broken on kernel 3.11.  Calling reboot is
more reliable.

Note that qemu won't actually reboot the VM, because we are passing
-no-reboot on the command line, so the VM should exit instead.
configure.ac
init.c