mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 18:35:55 +00:00
openWRT: separate disk attachment and resizing in VM setup (#10557)
This commit is contained in:
committed by
GitHub
parent
7ef1dd7111
commit
c4b9cd465a
@@ -552,10 +552,14 @@ fi
|
|||||||
|
|
||||||
qm set "$VMID" \
|
qm set "$VMID" \
|
||||||
-efidisk0 "${STORAGE}:0,efitype=4m,size=4M" \
|
-efidisk0 "${STORAGE}:0,efitype=4m,size=4M" \
|
||||||
-scsi0 "${DISK_REF},size=${DISK_SIZE}" \
|
-scsi0 "${DISK_REF}" \
|
||||||
-boot order=scsi0 \
|
-boot order=scsi0 \
|
||||||
-tags community-script >/dev/null
|
-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=$(
|
DESCRIPTION=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user