summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-04 16:33:13 -0700
committerLennart Poettering <lennart@poettering.net>2012-09-04 16:33:13 -0700
commit014a9c777b97b9df432f71537e289b2723795412 (patch)
tree03d78f65378369ad04c3ed8384972b558175ad94 /src/nspawn/nspawn.c
parente65aec12ae1d224aa2b7743fd5d5d10c586227ac (diff)
nspawn: skip mounts if already mounted
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index a8c8b7caf4..4aa877d7a7 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -306,6 +306,9 @@ static int mount_all(const char *dest) {
continue;
}
+ if (t > 0)
+ continue;
+
mkdir_p_label(where, 0755);
if (mount(mount_table[k].what,