chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dbus: expose cgroup properties in introspection everywhere
[elogind.git]
/
src
/
core
/
shutdown.c
diff --git
a/src/core/shutdown.c
b/src/core/shutdown.c
index 0b0e0c3d476c3d10c74ce0044706adf1c291195e..2db761de36651c7dcc23cf844a97a849bf2d8b32 100644
(file)
--- a/
src/core/shutdown.c
+++ b/
src/core/shutdown.c
@@
-261,6
+261,8
@@
int main(int argc, char *argv[]) {
if (retries >= FINALIZE_ATTEMPTS)
log_error("Too many iterations, giving up.");
if (retries >= FINALIZE_ATTEMPTS)
log_error("Too many iterations, giving up.");
+ else
+ log_info("Storage is finalized.");
arguments[0] = NULL;
arguments[1] = argv[1];
arguments[0] = NULL;
arguments[1] = argv[1];
@@
-272,6
+274,9
@@
int main(int argc, char *argv[]) {
if (prepare_new_root() >= 0 &&
pivot_to_new_root() >= 0) {
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");
}
execv("/shutdown", argv);
log_error("Failed to execute shutdown binary: %m");
}