Skip to content

Commit 1528441

Browse files
authored
feat: make buildernet vm data disk size configurable with env var (#392)
1 parent 9d1baaf commit 1528441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom-recipes/buildernet/mkosi/scripts/prepare.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ else
5151
fi
5252

5353
echo "prepare.sh: creating data disk..."
54-
qemu-img create -f raw "${VM_DATA_DISK}" 100G
54+
VM_DATA_DISK_SIZE="${VM_DATA_DISK_SIZE:-100G}"
55+
qemu-img create -f raw "${VM_DATA_DISK}" "${VM_DATA_DISK_SIZE}"
5556

5657
echo "prepare.sh: runtime ready"
5758
ls -lah "${RUNTIME_DIR}"

0 commit comments

Comments
 (0)