From ccad7f941c0a2a8cab2b5daff5e084efbea37b37 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 17 Oct 2023 12:29:23 +0200 Subject: [PATCH] also remove ZFS unreferenced disks if any --- vm/haos-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/haos-vm.sh b/vm/haos-vm.sh index c8a9217d..65376768 100644 --- a/vm/haos-vm.sh +++ b/vm/haos-vm.sh @@ -51,7 +51,7 @@ function error_handler() { function cleanup_vmid() { if qm status $VMID &>/dev/null; then qm stop $VMID &>/dev/null - qm destroy $VMID &>/dev/null + qm destroy $VMID --destroy-unreferenced-disks &>/dev/null fi }