mirror of
https://github.com/systemd/systemd.git
synced 2025-01-21 22:04:01 +03:00
nspawn: make unexpected mkdir() failures fatal
THis is just to make things easier to debug.
This commit is contained in:
parent
5229cd839a
commit
8f9ea89ce4
@ -475,7 +475,8 @@ int mount_sysfs(const char *dest, MountSettingsMask mount_settings) {
|
||||
if (!full)
|
||||
return log_oom();
|
||||
|
||||
(void) mkdir(full, 0755);
|
||||
if (mkdir(full, 0755) < 0 && errno != EEXIST)
|
||||
return log_error_errno(errno, "Failed to create directory '%s': %m", full);
|
||||
|
||||
if (FLAGS_SET(mount_settings, MOUNT_APPLY_APIVFS_RO))
|
||||
extra_flags |= MS_RDONLY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user