diff --git a/scripts/disk-passthrough.sh b/scripts/disk-passthrough.sh index 336bec5..0ed180e 100644 --- a/scripts/disk-passthrough.sh +++ b/scripts/disk-passthrough.sh @@ -209,7 +209,7 @@ while read -r DISK; do fi - if qm config "$VMID" | grep -q "$DISK"; then + if qm config "$VMID" | grep -vE '^\s*#|^description:' | grep -q "$DISK"; then SHOW_DISK=false fi