Ben Hutchings 8a29ef3867 scripts/functions: Use "reboot -f" to reboot on panic
klibc's reboot implementation always calls reboot(2), whereas
busybox's reboot implementation defaults to signalling an init daemon
which doesn't exist in the initramfs.  The solution is simply to use
the -f option, which both implementations accept.

This seems to have been broken since commit c04a9db5b70b "hooks/klibc:
Make us play more nicely with busybox and static bin/sh" which caused
busybox's reboot implementation to be preferred over klibc's.

The failure to reboot was previously reported as #751488, but only
worked around by forcing a kernel panic if it failed.

Closes: #923165
Related-to: #751488
Thanks: Michael Niewöhner <linux@mniewoehner.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-28 00:49:58 +01:00
..