qubes-dom0-update: fix removing backup template after the operation

qvm-remove got confirmation prompt, add -f to avoid it.

(cherry picked from commit 9cf273d187)
pull/56/head
Marek Marczykowski-Górecki 5 years ago
parent cc60e99eec
commit 154031d7cf
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -233,7 +233,7 @@ if [ ${#PKGS[@]} -gt 0 ]; then
# Remove backup, if we made one. Better to do this only on success and
# potentially leave extra backups around than do it on an exit trap and
# clean up more reliably but potentially brick a system.
qvm-remove -- "$TEMPLATE_BACKUP"
qvm-remove -f -- "$TEMPLATE_BACKUP"
fi
if [ -n "$TEMPLATE" -a -n "$TEMPLATE_NETVM" -a x"$TEMPLATE_NETVM" != xNone ]; then

Loading…
Cancel
Save