[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Apr 9 09:29:48 PDT 2013
src/core/shutdown.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 30d743f43007ed5a3db1f9a053b6d87c0940adb2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Apr 9 18:29:24 2013 +0200
shutdown: print a nice message before returning to initrd
diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 86ea054..2db761d 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");
}
More information about the systemd-commits
mailing list