Explorar el Código

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
Ken Moore hace 5 años
padre
commit
be02f166cf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mklive.sh.in

+ 1 - 1
mklive.sh.in

@@ -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