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:
parent
db63658d12
commit
acf0865eec
|
@ -449,6 +449,7 @@ set -x
|
||||||
|
|
||||||
source "/root/anaconda.cmdline.vars"
|
source "/root/anaconda.cmdline.vars"
|
||||||
SOURCE=/tmp/source
|
SOURCE=/tmp/source
|
||||||
|
FS=/tmp/fs
|
||||||
|
|
||||||
# Prepare bootstrap_admin_node config
|
# Prepare bootstrap_admin_node config
|
||||||
mkdir -p /etc/fuel
|
mkdir -p /etc/fuel
|
||||||
|
@ -461,7 +462,7 @@ wait_for_external_config=${wait_for_external_config:-no}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Unmounting source
|
# Unmounting source
|
||||||
umount -f ${SOURCE}
|
umount -f ${SOURCE} || true
|
||||||
rm -rf ${SOURCE}
|
rm -rf ${SOURCE}
|
||||||
|
|
||||||
umount -f ${FS} || true
|
umount -f ${FS} || true
|
||||||
|
|
Loading…
Reference in New Issue