Fix umount issue in the postinstall scripts

This change adds the workaround for unclean umounting the installation dirs.

Change-Id: Ifccb0f6b341b9315dc9ace500ab855728fcbc98f
Closes-Bug: #1602229
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
This commit is contained in:
Maksim Malchuk 2016-07-12 15:38:13 +03:00
parent db63658d12
commit acf0865eec
1 changed files with 2 additions and 1 deletions

View File

@ -449,6 +449,7 @@ set -x
source "/root/anaconda.cmdline.vars"
SOURCE=/tmp/source
FS=/tmp/fs
# Prepare bootstrap_admin_node config
mkdir -p /etc/fuel
@ -461,7 +462,7 @@ wait_for_external_config=${wait_for_external_config:-no}
EOF
# Unmounting source
umount -f ${SOURCE}
umount -f ${SOURCE} || true
rm -rf ${SOURCE}
umount -f ${FS} || true