chiark / gitweb /
shutdown: print a nice message before returning to initrd
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Apr 2013 16:29:24 +0000 (18:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Apr 2013 16:29:33 +0000 (18:29 +0200)
src/core/shutdown.c

index 86ea054..2db761d 100644 (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");
                 }