don't recompress, but just uncompress the kernel modules: mksquashfs will be better able to compress them

This commit is contained in:
Gerd v. Egidy 2022-01-19 21:51:30 +01:00
parent d82ea0f8eb
commit 7cbf44e029

View file

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