On 11/13/2017 8:19 PM, Cathey, Jim wrote:

>Is there a reason why BusyBox's [reboot] implementation is different, or is it a bug?

The final fs cleanup, and the only one that really counts, is what the kernel does after init(8) exits.


Pretty sure if init exits it is an immediate PANIC, which is not how most systems reboot.  I think it all ends with the reboot syscall. I'm not sure what the semantics are for that syscall, but it would seem that sync() would be wise to execute first.  Unless it's implied by reboot().

-Mike
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to