mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-27 01:44:25 +00:00
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>