Print warning with failing umount
This commit is contained in:
parent
66d3a14530
commit
db4a90d225
4
mount.c
4
mount.c
@ -198,7 +198,9 @@ bool mountInitNs(struct nsjconf_t * nsjconf)
|
|||||||
* Remove the tmpfs from /tmp is we are mounting / as root
|
* Remove the tmpfs from /tmp is we are mounting / as root
|
||||||
*/
|
*/
|
||||||
if (0 == strcmp(nsjconf->chroot, "/")) {
|
if (0 == strcmp(nsjconf->chroot, "/")) {
|
||||||
umount2(destdir, MNT_DETACH);
|
if (umount2(destdir, MNT_DETACH) == -1) {
|
||||||
|
PLOG_W("umount2('%s', MNT_DETACH) failed", destdir);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user