commit
79d80fc1466512d0ca211f4bfcd9de5f2f816a5a introduced 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.
return log_oom();
r = mkdir_label(where, 0755);
return log_oom();
r = mkdir_label(where, 0755);
+ if (r < 0 && errno != EEXIST) {
log_error("creating mount point for tmpfs %s failed: %s", where, strerror(-r));
return r;
log_error("creating mount point for tmpfs %s failed: %s", where, strerror(-r));
return r;