mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
core: remove empty cgroups (#7457)
When we skip an unwritable cgroup also remove the empty mountpoint.
This commit is contained in:
parent
64b21ece8c
commit
1ff654e28b
@ -208,6 +208,7 @@ static int mount_one(const MountPoint *p, bool relabel) {
|
||||
r = access(p->where, W_OK);
|
||||
if (r < 0) {
|
||||
(void) umount(p->where);
|
||||
(void) rmdir(p->where);
|
||||
return (p->mode & MNT_FATAL) ? r : 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user