summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-07-30 20:24:40 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-07-30 20:24:40 +0200
commita27d2184164e1b2522971246da4d803083f96072 (patch)
treed09f85ec4994e4189ffc115f86ff6dc12e3d0fd5
parentsd-login: build test code again (diff)
downloadsystemd-a27d2184164e1b2522971246da4d803083f96072.tar.xz
systemd-a27d2184164e1b2522971246da4d803083f96072.zip
shutdownd: add 'success message' if we retried detaching stuff
If we need to retry, we print things like 'Not all file systems unmounted, 1 left' We should also print something after we succeeded, so we don't leave the impression we left stuff behind.
-rw-r--r--src/shutdown.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shutdown.c b/src/shutdown.c
index 6714927f86..52bad21971 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -384,9 +384,12 @@ int main(int argc, char *argv[]) {
log_error("Failed to detach DM devices: %s", strerror(-r));
}
- if (!need_umount && !need_swapoff && !need_loop_detach && !need_dm_detach)
+ if (!need_umount && !need_swapoff && !need_loop_detach && !need_dm_detach) {
+ if (retries > 0)
+ log_info("All filesystems, swaps, loop devices, DM devices detached.");
/* Yay, done */
break;
+ }
/* If in this iteration we didn't manage to
* unmount/deactivate anything, we either kill more