[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

shrinking the squashfs image size



Hi $LIST,

I would like to reduce the squashfs image size for a particular setup.
Both to reduce transfer time when netbooting, and to reduce the amount
of RAM used.

I would like to run

rm -rf squashfs-root/usr/share/doc/* squashfs-root/usr/share/locale/*
squashfs-root/usr/share/man/*

(the files in these directories are not relevant for my use case because
there is only one single application running in full-screen mode, and no
shell access for the user)

before the squashfs is created.
Where would I have to add that?


Also, I would like to run mksquashfs with additional parameters
-b 1048576 -comp xz
as that seems to shrink the image even further, thus reducing transfer
times (even though RAM usage will probably be the same).

Where would I specify that?

I searched
https://debian-live.alioth.debian.org/live-manual/stable/manual/html/live-manual.en.html
man lb_build
man lb_config
for "squashfs", but none of the hits seems relevant to my case.

So far, I'm using unsquashfs once live-build is done, and run the
commands manually (that's how I know I'm shaving about 60 Megabytes off
of the image with my changes), but I would prefer it if mksquashfs
wouldn't have to run twice.

Kind Regards,
Stefan Baur


Reply to: