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 a8c8b7c..4aa877d 100644 (file)
@@ -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,