Skip to content

Commit be02f16

Browse files
beanpole135the-maldridge
authored andcommitted
Increase initial squashfs size reservation
To help account for filesystem compression and such (particularly ZFS-on-root with compression enabled), bump the initial size reservation from (7/6) * X to 2 * X It could probably be a bit lower, but it is probably better to avoid getting too specific to particular compression rates or filesystem optimizations. Sponsored by: Project Trident
1 parent 68a3523 commit be02f16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mklive.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ generate_squashfs() {
255255
# Find out required size for the rootfs and create an ext3fs image off it.
256256
ROOTFS_SIZE=$(du --apparent-size -sm "$ROOTFS"|awk '{print $1}')
257257
mkdir -p "$BUILDDIR/tmp/LiveOS"
258-
truncate -s "$((ROOTFS_SIZE+ROOTFS_SIZE/6))M" \
258+
truncate -s "$((ROOTFS_SIZE+ROOTFS_SIZE))M" \
259259
"$BUILDDIR"/tmp/LiveOS/ext3fs.img >/dev/null 2>&1
260260
mkdir -p "$BUILDDIR/tmp-rootfs"
261261
mkfs.ext3 -F -m1 "$BUILDDIR/tmp/LiveOS/ext3fs.img" >/dev/null 2>&1

0 commit comments

Comments
 (0)