From: Lennart Poettering Date: Wed, 5 Sep 2012 21:16:41 +0000 (-0700) Subject: nspawn: if a file system comes pre-mounted, still do the read-only remounts X-Git-Tag: v190~170 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9c1c7f712d8270c4f6bd8141d0b1acb1f031fa08 nspawn: if a file system comes pre-mounted, still do the read-only remounts --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 4aa877d7a..ed72c3ebf 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);