Commit 30d743f4 authored by Lennart Poettering's avatar Lennart Poettering

shutdown: print a nice message before returning to initrd

parent c8f5f5e7
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment