summaryrefslogtreecommitdiff
path: root/ironic_python_agent/shell/write_image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ironic_python_agent/shell/write_image.sh')
-rwxr-xr-xironic_python_agent/shell/write_image.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ironic_python_agent/shell/write_image.sh b/ironic_python_agent/shell/write_image.sh
index 3f07e07a..c8fa0cef 100755
--- a/ironic_python_agent/shell/write_image.sh
+++ b/ironic_python_agent/shell/write_image.sh
@@ -39,6 +39,9 @@ log "Erasing existing GPT and MBR data structures from ${DEVICE}"
sgdisk -Z $DEVICE
log "Imaging $IMAGEFILE to $DEVICE"
+
+# limit the memory usage for qemu-img to 1 GiB
+ulimit -v 1048576
qemu-img convert -t directsync -O host_device $IMAGEFILE $DEVICE
sync