aboutsummaryrefslogtreecommitdiffstats
path: root/export-image/prerun.sh
diff options
context:
space:
mode:
authorSerge Schneider <[email protected]>2017-06-21 10:46:10 +0100
committerSerge Schneider <[email protected]>2017-06-21 10:46:10 +0100
commitd2b8d634b9b79d34b4aec10ce75f3503c439f6eb (patch)
tree150645986972b55cd14cbb080ee929cd3eeb9c0e /export-image/prerun.sh
parentd347d8d5f7c1fae250322265dad83ae5825bf50e (diff)
export-image: switch from fallocate to truncate
Diffstat (limited to 'export-image/prerun.sh')
-rwxr-xr-xexport-image/prerun.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/export-image/prerun.sh b/export-image/prerun.sh
index 9f54ce6..b782081 100755
--- a/export-image/prerun.sh
+++ b/export-image/prerun.sh
@@ -13,7 +13,7 @@ TOTAL_SIZE=$(du --apparent-size -s ${EXPORT_ROOTFS_DIR} --exclude var/cache/apt/
IMG_SIZE=$((BOOT_SIZE + TOTAL_SIZE + (400 * 1024 * 1024)))
-fallocate -l ${IMG_SIZE} ${IMG_FILE}
+truncate -s ${IMG_SIZE} ${IMG_FILE}
fdisk -H 255 -S 63 ${IMG_FILE} <<EOF
o
n