shutdown: print a nice message before returning to initrd (cherry picked from commit 30d743f430)

This commit is contained in:
Lennart Poettering
2013-04-09 18:29:24 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 3ca3c5bf54
commit afc0bf7379
+3
View File
@@ -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");
}