mirror of
https://github.com/tasket/Qubes-VM-hardening.git
synced 2025-07-11 17:29:20 -04:00
umount in template
This commit is contained in:
parent
e385fa995b
commit
8327e1e106
1 changed files with 4 additions and 1 deletions
|
@ -136,6 +136,7 @@ if qsvc vm-boot-protect || qsvc vm-boot-protect-root; then
|
|||
# Begin exit if in template or standalone
|
||||
if ! is_rwonly_persistent; then
|
||||
make_immutable
|
||||
umount $rw
|
||||
fi
|
||||
|
||||
fi
|
||||
|
@ -268,7 +269,9 @@ if qsvc vm-boot-protect-root && is_rwonly_persistent; then
|
|||
fi
|
||||
|
||||
# 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
|
||||
if [ $save_backup = 0 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue