summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2017-06-21 10:56:07 +0100
committerSerge Schneider <serge@raspberrypi.org>2017-06-21 10:56:07 +0100
commita0060bd475994d0466b2e24ea00003a38a8a0288 (patch)
tree306e09fe9c1c15d32828c5e1d18d0b056b92e04d /export-image
parentd2b8d634b9b79d34b4aec10ce75f3503c439f6eb (diff)
export-image: increase free space padding
Diffstat (limited to 'export-image')
-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 b782081..34a6d78 100755
--- a/export-image/prerun.sh
+++ b/export-image/prerun.sh
@@ -11,7 +11,7 @@ mkdir -p ${ROOTFS_DIR}
BOOT_SIZE=$(du --apparent-size -s ${EXPORT_ROOTFS_DIR}/boot --block-size=1 | cut -f 1)
TOTAL_SIZE=$(du --apparent-size -s ${EXPORT_ROOTFS_DIR} --exclude var/cache/apt/archives --block-size=1 | cut -f 1)
-IMG_SIZE=$((BOOT_SIZE + TOTAL_SIZE + (400 * 1024 * 1024)))
+IMG_SIZE=$((BOOT_SIZE + TOTAL_SIZE + (800 * 1024 * 1024)))
truncate -s ${IMG_SIZE} ${IMG_FILE}
fdisk -H 255 -S 63 ${IMG_FILE} <<EOF