summaryrefslogtreecommitdiff
path: root/src/core/shutdown.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-09 18:29:24 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-09 18:29:33 +0200
commit30d743f43007ed5a3db1f9a053b6d87c0940adb2 (patch)
tree35fb05896c4a69a965d87334315dc31e3a1860eb /src/core/shutdown.c
parentc8f5f5e72841d7b21a618507170b973c049f12ef (diff)
shutdown: print a nice message before returning to initrd
Diffstat (limited to 'src/core/shutdown.c')
-rw-r--r--src/core/shutdown.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 86ea054a1..2db761de3 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -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");
}