You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes a couple of assumptions about userspace though:
that shutdown is present
that the init system will handle a fairly normal reboot request in a way that kexec expects (ie, ending with a reboot(LINUX_REBOOT_CMD_KEXEC)). This means that the init system needs to (somehow) detect, out-of-band, that we want to do a kexec reboot rather than a normal one.
Neither of these is true for busybox init, hence @mikey 's problems running upstream kexec-lite on petitboot. We have some glue in petitboot to handle this, but that's specific to busybox, and probably not something we want to integrate into kexec-lite as-is.
So, it would be great if we can design a better, lightweight way to tell init to shutdown & kexec. We'd probably need to coordinate with kexec-tools for this too.
The text was updated successfully, but these errors were encountered:
Initially, I think we could create a convention of a specific binary for kexec & kexec-lite to call when it wants to start a graceful shutdown & kexec. The system would provide that binary to do the right thing for that userspace.
Currently,
kexec -e
just does a:This makes a couple of assumptions about userspace though:
shutdown
is presentreboot(LINUX_REBOOT_CMD_KEXEC)
). This means that the init system needs to (somehow) detect, out-of-band, that we want to do a kexec reboot rather than a normal one.Neither of these is true for busybox init, hence @mikey 's problems running upstream kexec-lite on petitboot. We have some glue in petitboot to handle this, but that's specific to busybox, and probably not something we want to integrate into
kexec-lite
as-is.So, it would be great if we can design a better, lightweight way to tell init to shutdown & kexec. We'd probably need to coordinate with kexec-tools for this too.
The text was updated successfully, but these errors were encountered: