chiark / gitweb /
nspawn: if a file system comes pre-mounted, still do the read-only remounts
authorLennart Poettering <lennart@poettering.net>
Wed, 5 Sep 2012 21:16:41 +0000 (14:16 -0700)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Sep 2012 21:16:41 +0000 (14:16 -0700)
src/nspawn/nspawn.c

index 4aa877d..ed72c3e 100644 (file)
@@ -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);