diff options
author | Maksim Malchuk <mmalchuk@mirantis.com> | 2016-07-12 15:38:13 +0300 |
---|---|---|
committer | Maksim Malchuk <mmalchuk@mirantis.com> | 2016-07-12 16:43:56 +0300 |
commit | acf0865eec99d92e71fdb570704b012c617bf499 (patch) | |
tree | df96dad88427c10203081ada819609ff65e20490 | |
parent | db63658d12d849f3b04b8d62c9f4e8c5d4411fb0 (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.template | 3 |
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 | ||
450 | source "/root/anaconda.cmdline.vars" | 450 | source "/root/anaconda.cmdline.vars" |
451 | SOURCE=/tmp/source | 451 | SOURCE=/tmp/source |
452 | FS=/tmp/fs | ||
452 | 453 | ||
453 | # Prepare bootstrap_admin_node config | 454 | # Prepare bootstrap_admin_node config |
454 | mkdir -p /etc/fuel | 455 | mkdir -p /etc/fuel |
@@ -461,7 +462,7 @@ wait_for_external_config=${wait_for_external_config:-no} | |||
461 | EOF | 462 | EOF |
462 | 463 | ||
463 | # Unmounting source | 464 | # Unmounting source |
464 | umount -f ${SOURCE} | 465 | umount -f ${SOURCE} || true |
465 | rm -rf ${SOURCE} | 466 | rm -rf ${SOURCE} |
466 | 467 | ||
467 | umount -f ${FS} || true | 468 | umount -f ${FS} || true |