summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Malchuk <mmalchuk@mirantis.com>2016-07-12 15:38:13 +0300
committerMaksim Malchuk <mmalchuk@mirantis.com>2016-07-12 16:43:56 +0300
commitacf0865eec99d92e71fdb570704b012c617bf499 (patch)
treedf96dad88427c10203081ada819609ff65e20490
parentdb63658d12d849f3b04b8d62c9f4e8c5d4411fb0 (diff)
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>
Notes
Notes (review): Code-Review+1: Vitaly Parakhin <vparakhin@mirantis.com> Code-Review+1: Oleksiy Molchanov <omolchanov@mirantis.com> Code-Review+1: Alex Schultz <aschultz@mirantis.com> Code-Review+2: Vladimir Kozhukalov <vkozhukalov@mirantis.com> Workflow+1: Vladimir Kozhukalov <vkozhukalov@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 13 Jul 2016 12:45:50 +0000 Reviewed-on: https://review.openstack.org/340918 Project: openstack/fuel-main Branch: refs/heads/master
-rw-r--r--iso/ks.template3
1 files changed, 2 insertions, 1 deletions
diff --git a/iso/ks.template b/iso/ks.template
index 0933c35..33e6b9c 100644
--- a/iso/ks.template
+++ b/iso/ks.template
@@ -449,6 +449,7 @@ set -x
449 449
450source "/root/anaconda.cmdline.vars" 450source "/root/anaconda.cmdline.vars"
451SOURCE=/tmp/source 451SOURCE=/tmp/source
452FS=/tmp/fs
452 453
453# Prepare bootstrap_admin_node config 454# Prepare bootstrap_admin_node config
454mkdir -p /etc/fuel 455mkdir -p /etc/fuel
@@ -461,7 +462,7 @@ wait_for_external_config=${wait_for_external_config:-no}
461EOF 462EOF
462 463
463# Unmounting source 464# Unmounting source
464umount -f ${SOURCE} 465umount -f ${SOURCE} || true
465rm -rf ${SOURCE} 466rm -rf ${SOURCE}
466 467
467umount -f ${FS} || true 468umount -f ${FS} || true