diff options
author | Serge Schneider <[email protected]> | 2017-06-21 10:46:10 +0100 |
---|---|---|
committer | Serge Schneider <[email protected]> | 2017-06-21 10:46:10 +0100 |
commit | d2b8d634b9b79d34b4aec10ce75f3503c439f6eb (patch) | |
tree | 150645986972b55cd14cbb080ee929cd3eeb9c0e /export-image/prerun.sh | |
parent | d347d8d5f7c1fae250322265dad83ae5825bf50e (diff) |
export-image: switch from fallocate to truncate
Diffstat (limited to 'export-image/prerun.sh')
-rwxr-xr-x | export-image/prerun.sh | 2 |
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 |