diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-05-03 08:47:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-05-09 14:32:13 +0000 |
commit | a26a71200c510c7fbc353c67ec2455af105bba25 (patch) | |
tree | 83eafa37a242accd7bfc3f1624d7b5f906096982 /lib/container | |
parent | Adding sysctl config for procps to increase inotify limits in order to run mo... (diff) | |
download | compute-tools-a26a71200c510c7fbc353c67ec2455af105bba25.tar.xz compute-tools-a26a71200c510c7fbc353c67ec2455af105bba25.zip |
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 <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'lib/container')
-rwxr-xr-x | lib/container/list | 2 |
1 files changed, 1 insertions, 1 deletions
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} |