chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f5f5e
)
shutdown: print a nice message before returning to initrd
author
Lennart Poettering
<lennart@poettering.net>
Tue, 9 Apr 2013 16:29:24 +0000
(18:29 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 9 Apr 2013 16:29:33 +0000
(18:29 +0200)
src/core/shutdown.c
patch
|
blob
|
history
diff --git
a/src/core/shutdown.c
b/src/core/shutdown.c
index 86ea054a1b938bf83c5033ae53cc34eb2a259732..2db761de36651c7dcc23cf844a97a849bf2d8b32 100644
(file)
--- 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");
}