chiark / gitweb /
nspawn: skip mounts if already mounted
authorLennart Poettering <lennart@poettering.net>
Tue, 4 Sep 2012 23:33:13 +0000 (16:33 -0700)
committerLennart Poettering <lennart@poettering.net>
Tue, 4 Sep 2012 23:33:13 +0000 (16:33 -0700)
src/nspawn/nspawn.c

index a8c8b7caf455e815186f927b7c0b6e68490ff3b9..4aa877d7a7d1ec933d41f5c7862a8b5d848c1b4b 100644 (file)
@@ -306,6 +306,9 @@ static int mount_all(const char *dest) {
                         continue;
                 }
 
                         continue;
                 }
 
+                if (t > 0)
+                        continue;
+
                 mkdir_p_label(where, 0755);
 
                 if (mount(mount_table[k].what,
                 mkdir_p_label(where, 0755);
 
                 if (mount(mount_table[k].what,