From 30d743f43007ed5a3db1f9a053b6d87c0940adb2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 9 Apr 2013 18:29:24 +0200 Subject: [PATCH] shutdown: print a nice message before returning to initrd --- src/core/shutdown.c | 3 +++ 1 file changed, 3 insertions(+) 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"); } -- 2.30.2