mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-01-08 17:50:07 +01:00
Merge branch 'space-savings' into 'master'
save image space by using more intelligent compression Closes #247 See merge request systemrescue/systemrescue-sources!164
This commit is contained in:
commit
d0a6ef07bb
|
|
@ -64,6 +64,10 @@ rm -rf /usr/share/gir*
|
|||
rm -rf /usr/include
|
||||
rm -rf /usr/share/man/man3
|
||||
|
||||
# save some more space by removing large & unnecessary files
|
||||
rm -f /lib/modules/*/vmlinuz
|
||||
rm -f /usr/share/grub/themes/starfield/starfield.png
|
||||
|
||||
# Cleanup XFCE menu
|
||||
sed -i '2 i NoDisplay=true' /usr/share/applications/{xfce4-mail-reader,xfce4-web-browser}.desktop
|
||||
sed -i "s/^\(Categories=\).*\$/Categories=Utility;/" /usr/share/applications/{geany,*ristretto*,*GHex*}.desktop
|
||||
|
|
|
|||
3
build.sh
3
build.sh
|
|
@ -225,10 +225,9 @@ make_customize_airootfs() {
|
|||
find ${work_dir}/${arch}/airootfs/usr/lib -type f -name "lib*.so.*" -exec strip --strip-all {} \;
|
||||
|
||||
# recompress kernel modules to save space (#247)
|
||||
echo "Recompressing kernel modules ..."
|
||||
echo "Uncompressing kernel modules ..."
|
||||
kernelver=$(basename ${work_dir}/${arch}/airootfs/usr/lib/modules/*)
|
||||
find ${work_dir}/${arch}/airootfs/usr/lib/modules/${kernelver} -type f -name "*.ko.zst" -exec zstd -q -d --rm {} \;
|
||||
find ${work_dir}/${arch}/airootfs/usr/lib/modules/${kernelver} -type f -name "*.ko" -exec xz {} \;
|
||||
depmod --all --basedir=${work_dir}/${arch}/airootfs/usr ${kernelver}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,3 +2,4 @@ MODULES=(fuse)
|
|||
BINARIES=(aq jq mount.ntfs)
|
||||
HOOKS=(base udev memdisk findroot archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block mdadm_udev modconf encrypt lvm2 filesystems keyboard)
|
||||
COMPRESSION="xz"
|
||||
COMPRESSION_OPTIONS="--threads=0 --lzma2=preset=9e,dict=128MiB --verbose"
|
||||
|
|
|
|||
Loading…
Reference in a new issue