summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nspawn/nspawn.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index c2148596b7..43c6b6845e 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3486,6 +3486,16 @@ static int outer_child(
if (r < 0)
return r;
+ r = mount_custom(
+ directory,
+ arg_custom_mounts,
+ arg_n_custom_mounts,
+ arg_uid_shift,
+ arg_selinux_apifs_context,
+ MOUNT_NON_ROOT_ONLY);
+ if (r < 0)
+ return r;
+
r = setup_timezone(directory);
if (r < 0)
return r;
@@ -3502,16 +3512,6 @@ static int outer_child(
if (r < 0)
return r;
- r = mount_custom(
- directory,
- arg_custom_mounts,
- arg_n_custom_mounts,
- arg_uid_shift,
- arg_selinux_apifs_context,
- MOUNT_NON_ROOT_ONLY);
- if (r < 0)
- return r;
-
if (!arg_use_cgns) {
r = mount_cgroups(
directory,