Switch to truncate to allocate storage for images
Works in low memory situations
This commit is contained in:
@@ -131,7 +131,7 @@ case "$DD_VERSION" in
|
||||
esac
|
||||
|
||||
info_msg "Creating disk image ($IMGSIZE) ..."
|
||||
dd if=/dev/zero of=$FILENAME bs=$IMGSIZE count=1 ${DD_SPARSE} >/dev/null 2>&1
|
||||
truncate -s "${IMGSIZE}M" $FILENAME >/dev/null 2>&1
|
||||
|
||||
ROOTFSDIR=$(mktemp -d)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user