Commit 96db85d0 authored by Mike Hibler's avatar Mike Hibler
Browse files

exec() the final reboot/halt command so there is not an extra level of shell.

Otherwise, the shell will be killed by reboot leading to init restarting it.
Probably does not do any harm other than printing a confusing error message,
but I have seen cases of minorly corrupt root FSes in BSD images.
parent d3d86a10
......@@ -42,8 +42,7 @@ sync
# XEN vms will just restart, so halt to really stop it.
if [ $dohalt -eq 1 ]; then
exec /sbin/halt
exec /sbin/reboot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment