summaryrefslogtreecommitdiff
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-05 14:16:41 -0700
committerLennart Poettering <lennart@poettering.net>2012-09-05 14:16:41 -0700
commit9c1c7f712d8270c4f6bd8141d0b1acb1f031fa08 (patch)
treebda75c2e277df51e7391601edb00f4d2945efda4 /src/nspawn/nspawn.c
parentf408b8f1bbf79aa566e3f2162f44e7c9c67c0396 (diff)
nspawn: if a file system comes pre-mounted, still do the read-only remounts
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 4aa877d7a7..ed72c3ebf1 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -306,7 +306,8 @@ static int mount_all(const char *dest) {
continue;
}
- if (t > 0)
+ /* Skip this entry if it is not a remount. */
+ if (mount_table[k].what && t > 0)
continue;
mkdir_p_label(where, 0755);