shutdown: print a nice message before returning to initrd

This commit is contained in:
Lennart Poettering 2013-04-09 18:29:24 +02:00
parent c8f5f5e728
commit 30d743f430

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");
}