mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-28 09:00:41 +00:00
nspawn: ignore EEXIST when mounting tmpfs
commit79d80fc146introduced a regression that prevents mounting a tmpfs if the mount point already exits in the container's root file system. This commit fixes the problem by ignoring EEXIST. (cherry picked from commit6c2d07020f)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
4f45221f4a
commit
19f3560483
+1
-1
@@ -818,7 +818,7 @@ static int mount_tmpfs(const char *dest) {
|
||||
return log_oom();
|
||||
|
||||
r = mkdir_label(where, 0755);
|
||||
if (r < 0) {
|
||||
if (r < 0 && errno != EEXIST) {
|
||||
log_error("creating mount point for tmpfs %s failed: %s", where, strerror(-r));
|
||||
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user