mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-16 02:35:58 +00:00
shutdown: print a nice message before returning to initrd (cherry picked from commit 30d743f430)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
3ca3c5bf54
commit
afc0bf7379
@@ -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