From d2b8d634b9b79d34b4aec10ce75f3503c439f6eb Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Wed, 21 Jun 2017 10:46:10 +0100 Subject: [PATCH] export-image: switch from fallocate to truncate --- export-image/prerun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} <