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
d6a22557d1
commit
70d1ff99a9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue