summaryrefslogtreecommitdiff
path: root/src
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
parentc8f5f5e72841d7b21a618507170b973c049f12ef (diff)
shutdown: print a nice message before returning to initrd
Diffstat (limited to 'src')
-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 86ea054a1b..2db761de36 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");
}