From c4b9cd465afb19d0aef94391f4d8350febf3c626 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Mon, 5 Jan 2026 15:28:54 +0100 Subject: [PATCH] openWRT: separate disk attachment and resizing in VM setup (#10557) --- vm/openwrt-vm.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vm/openwrt-vm.sh b/vm/openwrt-vm.sh index 669276cf9..1680f50f3 100644 --- a/vm/openwrt-vm.sh +++ b/vm/openwrt-vm.sh @@ -552,10 +552,14 @@ fi qm set "$VMID" \ -efidisk0 "${STORAGE}:0,efitype=4m,size=4M" \ - -scsi0 "${DISK_REF},size=${DISK_SIZE}" \ + -scsi0 "${DISK_REF}" \ -boot order=scsi0 \ -tags community-script >/dev/null -msg_ok "Attached disk (${DISK_SIZE})" +msg_ok "Attached disk" + +msg_info "Resizing disk to ${DISK_SIZE}" +qm disk resize "$VMID" scsi0 "${DISK_SIZE}" >/dev/null +msg_ok "Resized disk to ${DISK_SIZE}" DESCRIPTION=$( cat <