From a26a71200c510c7fbc353c67ec2455af105bba25 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 3 May 2017 10:47:45 +0200 Subject: Updating list of excluded directory names in container list command. * dropping .container-tools and container-tools, on shared storage we recommend to use the following scheme: - /srv/container - /srv/container/config - /srv/container/debconfig - /srv/container/system - /srv/container/data whereas the following symlinks are in place: - /var/lib/machines -> /srv/container/system - /etc/container-tools/config -> /srv/container/config - /etc/container-tools/debconfig -> /srv/container/debconf ...and /srv/container being the mountpoint of the shared storage. * dropping .snap (Ceph) and .snapshot (NetApp), not needed anymore. Signed-off-by: Daniel Baumann --- lib/container/list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/container/list b/lib/container/list index 9608fd7..9bf61c4 100755 --- a/lib/container/list +++ b/lib/container/list @@ -320,7 +320,7 @@ esac if ls "${MACHINES}"/* > /dev/null 2>&1 then - 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)" + CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name 'lost+found' -printf '%P\n' | sort)" fi for CONTAINER in ${CONTAINERS} -- cgit v1.2.3