diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-01-19 09:21:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2018-01-19 09:21:52 +0000 |
commit | 5415070a9643b3227c0227a72ec05d0d282d7c38 (patch) | |
tree | e8aadbfa009049a8d8859e2465169294cc4731d3 /lib/container/start | |
parent | Running host commands as last thing in debconf container create script in ord... (diff) | |
download | compute-tools-5415070a9643b3227c0227a72ec05d0d282d7c38.tar.xz compute-tools-5415070a9643b3227c0227a72ec05d0d282d7c38.zip |
Adding message when creating bind mount directories in container start command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'lib/container/start')
-rwxr-xr-x | lib/container/start | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/container/start b/lib/container/start index ff9ecc8..ca88af2 100755 --- a/lib/container/start +++ b/lib/container/start @@ -212,7 +212,11 @@ then do DIRECTORY="$(echo ${BIND} | awk -F: '{ print $1 }')" - mkdir -p "${DIRECTORY}" + if [ ! -e "${DIRECTORY}" ] + then + echo "'${DIRECTORY}': creating non-existing directory for bind mounting" + mkdir -p "${DIRECTORY}" + fi done BIND="" @@ -233,7 +237,11 @@ then do DIRECTORY="$(echo ${BIND_RO} | awk -F: '{ print $1 }')" - mkdir -p "${DIRECTORY}" + if [ ! -e "${DIRECTORY}" ] + then + echo "'${DIRECTORY}': creating non-existing directory for bind-ro mounting" + mkdir -p "${DIRECTORY}" + fi done BIND_RO="" |