Browse Source

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>
Maksim Malchuk 2 years ago
parent
commit
acf0865eec
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      iso/ks.template

+ 2
- 1
iso/ks.template View File

@@ -449,6 +449,7 @@ set -x
449 449
 
450 450
 source "/root/anaconda.cmdline.vars"
451 451
 SOURCE=/tmp/source
452
+FS=/tmp/fs
452 453
 
453 454
 # Prepare bootstrap_admin_node config
454 455
 mkdir -p /etc/fuel
@@ -461,7 +462,7 @@ wait_for_external_config=${wait_for_external_config:-no}
461 462
 EOF
462 463
 
463 464
 # Unmounting source
464
-umount -f ${SOURCE}
465
+umount -f ${SOURCE} || true
465 466
 rm -rf ${SOURCE}
466 467
 
467 468
 umount -f ${FS} || true

Loading…
Cancel
Save