summaryrefslogtreecommitdiff
path: root/mkimage.sh
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-06 12:41:57 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-06 12:41:57 +0000
commit3c797616da7f0b236ec22b72e917294e56f0d3e5 (patch)
tree0a483b45af1d4d3202a1851fede8999fcd1174fe /mkimage.sh
parentf9b302ebf9ff07c555432083d2f450d2e2af80de (diff)
downloadmorph-3c797616da7f0b236ec22b72e917294e56f0d3e5.tar.gz
Fix hole creation to use a small buffer
dd does not need to allocate a buffer, but it evidently does, and this fails on ARM boards. Using a small buffer is no problem, of course.
Diffstat (limited to 'mkimage.sh')
-rwxr-xr-xmkimage.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkimage.sh b/mkimage.sh
index 841120b8..61ea49d9 100755
--- a/mkimage.sh
+++ b/mkimage.sh
@@ -71,7 +71,7 @@ img="$1"
shift
# Create an empty file (a hole) as the raw disk image file.
-dd if=/dev/zero of="$img" bs=16G seek=1 count=0
+dd if=/dev/zero of="$img" bs=1k seek=16777216 count=0
# Partition. See the sfdisk(8) manpage for an explanation of the input.
sfdisk "$img" <<EOF