mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 01:20:53 +00:00
core: don't fail on EEXIST when creating mount point
systemd[1016]: Failed to mount /tmp/app1 (type n/a) on /run/systemd/unit-extensions/1 (MS_BIND ): No such file or directory systemd[1016]: Failed to create destination mount point node '/run/systemd/unit-extensions/1': File exists
This commit is contained in:
committed by
Lennart Poettering
parent
61b9769bda
commit
9d6d4c305a
@@ -1482,7 +1482,7 @@ static int apply_one_mount(
|
||||
(void) mkdir_parents(mount_entry_path(m), 0755);
|
||||
|
||||
q = make_mount_point_inode_from_path(what, mount_entry_path(m), 0755);
|
||||
if (q < 0)
|
||||
if (q < 0 && q != -EEXIST)
|
||||
log_error_errno(q, "Failed to create destination mount point node '%s': %m",
|
||||
mount_entry_path(m));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user