mirror of
https://github.com/troglobit/finit.git
synced 2026-10-22 11:36:07 +00:00
Add more progress messages at shutdown/reboot
This patch changes the way progress for unmounting filesystems is displayed. To see each filesystem being unmounted Finit now must be in debug mode. A general "Unmounting filesystems ..." have been added instead as well as progress for last hook script and finall call to reboot(). Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
cfa871c548
commit
1d92819d92
2 files changed
+7
-3
No files matched your search
+2
-1
@@ -97,13 +97,14 @@ static int unmount(const char *target)
|
||||
{
|
||||
int rc;
|
||||
|
||||
dbg("Unmounting %s", target);
|
||||
|
||||
rc = umount(target);
|
||||
if (rc) {
|
||||
if (errno != EBUSY)
|
||||
print(2, "Failed unmounting %s, error %d: %s", target, errno, strerror(errno));
|
||||
return rc;
|
||||
}
|
||||
print(0, "Unmounting %s", target);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user