chiark / gitweb /
manager: add DefaultEnvironment option
[elogind.git] / src / core / shutdown.c
index 0b0e0c3d476c3d10c74ce0044706adf1c291195e..2db761de36651c7dcc23cf844a97a849bf2d8b32 100644 (file)
@@ -261,6 +261,8 @@ int main(int argc, char *argv[]) {
 
         if (retries >= FINALIZE_ATTEMPTS)
                 log_error("Too many iterations, giving up.");
+        else
+                log_info("Storage is finalized.");
 
         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) {
+
+                        log_info("Returning to initrd...");
+
                         execv("/shutdown", argv);
                         log_error("Failed to execute shutdown binary: %m");
                 }