Closed YukariChiba closed 3 months ago
this commit adds initial support for soft-reboot command to shutdown, which is similar to systemd's soft-reboot, but without root switching.
soft-reboot
shutdown
Early services need to be idempotent for soft-reboot to work properly.
Updated: added an argument --ignore-sys-args to ignore kernel args, which would be added automatically in soft-reboot execv.
--ignore-sys-args
execv
Updated: filtered out "single" argument
Updated: The re-execv-ing retains boot-time parameters to simplify the code and is consistent with systemd's soft-reboot behavior.
The behavior of soft-reboot has been described in the documentation.
Thanks, now merged. If you would like to add yourself to the CONTRIBUTORS file, please open another pull request to do so. :)
this commit adds initial support for
soft-reboot
command toshutdown
, which is similar to systemd's soft-reboot, but without root switching.Early services need to be idempotent for soft-reboot to work properly.
Updated: added an argument--ignore-sys-args
to ignore kernel args, which would be added automatically in soft-rebootexecv
.Updated: filtered out "single" argumentUpdated: The re-
execv
-ing retains boot-time parameters to simplify the code and is consistent with systemd's soft-reboot behavior.