diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-06-02 11:20:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-06-02 15:56:06 +0200 |
commit | 9dd2da5b720e32933e31b098be45cf52a16acf5f (patch) | |
tree | 5ebfb5f0fb41828ab50ded741e2855749bcd9d46 /src/shutdown/shutdown.c | |
parent | detach-loopback: also don't bother detaching loopback block device /usr/ is r... (diff) | |
download | systemd-9dd2da5b720e32933e31b098be45cf52a16acf5f.tar.xz systemd-9dd2da5b720e32933e31b098be45cf52a16acf5f.zip |
shutdown: tone down failure messages a bit
If we are not able to detach all MD/DM/loopback devices this is not
necessarily a failure, it's simply because we might be running off them.
Hence let's tone down our language a bit, and just say "Unable to"
rather than "Failed to".
Diffstat (limited to '')
-rw-r--r-- | src/shutdown/shutdown.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c index b742732bb1..08cc114d3a 100644 --- a/src/shutdown/shutdown.c +++ b/src/shutdown/shutdown.c @@ -452,7 +452,7 @@ int main(int argc, char *argv[]) { } else if (r > 0) log_info("Not all file systems unmounted, %d left.", r); else - log_error_errno(r, "Failed to unmount file systems: %m"); + log_error_errno(r, "Unable to unmount file systems: %m"); } if (need_swapoff) { @@ -464,7 +464,7 @@ int main(int argc, char *argv[]) { } else if (r > 0) log_info("Not all swaps deactivated, %d left.", r); else - log_error_errno(r, "Failed to deactivate swaps: %m"); + log_error_errno(r, "Unable to deactivate swaps: %m"); } if (need_loop_detach) { @@ -476,7 +476,7 @@ int main(int argc, char *argv[]) { } else if (r > 0) log_info("Not all loop devices detached, %d left.", r); else - log_error_errno(r, "Failed to detach loop devices: %m"); + log_error_errno(r, "Unable to detach loop devices: %m"); } if (need_md_detach) { @@ -488,7 +488,7 @@ int main(int argc, char *argv[]) { } else if (r > 0) log_info("Not all MD devices stopped, %d left.", r); else - log_error_errno(r, "Failed to stop MD devices: %m"); + log_error_errno(r, "Unable to stop MD devices: %m"); } if (need_dm_detach) { @@ -500,7 +500,7 @@ int main(int argc, char *argv[]) { } else if (r > 0) log_info("Not all DM devices detached, %d left.", r); else - log_error_errno(r, "Failed to detach DM devices: %m"); + log_error_errno(r, "Unable to detach DM devices: %m"); } if (!need_umount && !need_swapoff && !need_loop_detach && !need_dm_detach @@ -567,7 +567,7 @@ int main(int argc, char *argv[]) { } if (need_umount || need_swapoff || need_loop_detach || need_dm_detach || need_md_detach) - log_error("Failed to finalize%s%s%s%s%s ignoring.", + log_error("Unable to finalize remaining%s%s%s%s%s ignoring.", need_umount ? " file systems," : "", need_swapoff ? " swap devices," : "", need_loop_detach ? " loop devices," : "", |