umount in template

This commit is contained in:
Christopher Laprise 2019-08-14 01:34:39 -04:00
parent e385fa995b
commit 8327e1e106
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -136,6 +136,7 @@ if qsvc vm-boot-protect || qsvc vm-boot-protect-root; then
# Begin exit if in template or standalone # Begin exit if in template or standalone
if ! is_rwonly_persistent; then if ! is_rwonly_persistent; then
make_immutable make_immutable
umount $rw
fi fi
fi fi
@ -268,7 +269,9 @@ if qsvc vm-boot-protect-root && is_rwonly_persistent; then
fi fi
# Keep configs invisible at runtime... # Keep configs invisible at runtime...
rm -rf "$defdir" $servicedir/vm-boot-tag* $servicedir/vm-boot-protect* $errlog if ! is_templatevm; then
rm -rf "$defdir" $servicedir/vm-boot-tag* $servicedir/vm-boot-protect* $errlog
fi
# Remove backups if indicated # Remove backups if indicated
if [ $save_backup = 0 ]; then if [ $save_backup = 0 ]; then