From: Lennart Poettering Date: Tue, 4 Sep 2012 23:33:13 +0000 (-0700) Subject: nspawn: skip mounts if already mounted X-Git-Tag: v190~173 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=014a9c777b97b9df432f71537e289b2723795412;p=elogind.git nspawn: skip mounts if already mounted --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index a8c8b7caf..4aa877d7a 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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,