mirror of
https://github.com/systemd/systemd.git
synced 2025-08-15 01:49:58 +03:00
shutdown: print a nice message before returning to initrd
This commit is contained in:
@ -274,6 +274,9 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (prepare_new_root() >= 0 &&
|
||||
pivot_to_new_root() >= 0) {
|
||||
|
||||
log_info("Returning to initrd...");
|
||||
|
||||
execv("/shutdown", argv);
|
||||
log_error("Failed to execute shutdown binary: %m");
|
||||
}
|
||||
|
Reference in New Issue
Block a user