From 70d1ff99a9e68dad14099d652f60441f9e220aea Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Tue, 12 Jul 2016 15:38:13 +0300 Subject: [PATCH] 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 --- iso/ks.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iso/ks.template b/iso/ks.template index cb9cb7c90..55485a615 100644 --- a/iso/ks.template +++ b/iso/ks.template @@ -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