mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-03-11 01:01:41 +07:00
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.
This commit is contained in:
parent
b9b2b042c5
commit
a27d218416
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user