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 d6a22557d1
commit 70d1ff99a9
1 changed files with 2 additions and 1 deletions

View File

@ -446,6 +446,7 @@ set -x
source "/root/anaconda.cmdline.vars"
SOURCE=/tmp/source
FS=/tmp/fs
# Prepare bootstrap_admin_node config
mkdir -p /etc/fuel
@ -458,7 +459,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