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
This commit is contained in:
parent
68a35230cc
commit
be02f166cf
|
@ -255,7 +255,7 @@ generate_squashfs() {
|
|||
# Find out required size for the rootfs and create an ext3fs image off it.
|
||||
ROOTFS_SIZE=$(du --apparent-size -sm "$ROOTFS"|awk '{print $1}')
|
||||
mkdir -p "$BUILDDIR/tmp/LiveOS"
|
||||
truncate -s "$((ROOTFS_SIZE+ROOTFS_SIZE/6))M" \
|
||||
truncate -s "$((ROOTFS_SIZE+ROOTFS_SIZE))M" \
|
||||
"$BUILDDIR"/tmp/LiveOS/ext3fs.img >/dev/null 2>&1
|
||||
mkdir -p "$BUILDDIR/tmp-rootfs"
|
||||
mkfs.ext3 -F -m1 "$BUILDDIR/tmp/LiveOS/ext3fs.img" >/dev/null 2>&1
|
||||
|
|
Loading…
Reference in New Issue