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 86ea054a1b938bf83c5033ae53cc34eb2a259732..2db761de36651c7dcc23cf844a97a849bf2d8b32 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");
                 }