summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:08:15 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-14 19:08:15 +0000
commit4a6e8df68ff96b8a44a04cae999cbfa44d01f3fc (patch)
treefb449e86eebb0794f863a378fa4de5841e655d5c
parentSilencing error message in container list command if machine directory is not... (diff)
downloadcompute-tools-4a6e8df68ff96b8a44a04cae999cbfa44d01f3fc.tar.xz
compute-tools-4a6e8df68ff96b8a44a04cae999cbfa44d01f3fc.zip
Excluding container-tools and .container-tools in /var/lib/machines as special directories to allow all container-tools ressources to be places on shared storage.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xlib/container/list2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/list b/lib/container/list
index e1e3855..6c932d5 100755
--- a/lib/container/list
+++ b/lib/container/list
@@ -104,7 +104,7 @@ EOF
;;
esac
-CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
+CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name '.container-tools' -and -not -name 'container-tools' -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)"
for CONTAINER in ${CONTAINERS}
do