When using -A option (unmount all mounted filesystems), do not attempt
to unmount /dev as it will always fail.
This commit is contained in:
parent
c2e3261ad6
commit
80bbaeb540
@ -154,6 +154,8 @@ main(int argc, char *argv[])
|
||||
sfs = &mntbuf[mntsize];
|
||||
if (checkvfsname(sfs->f_fstypename, typelist))
|
||||
continue;
|
||||
if (strcmp(sfs->f_mntonname, "/dev") == 0)
|
||||
continue;
|
||||
if (umountfs(sfs) != 0)
|
||||
errs = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user