mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-04-21 06:03:41 +00:00
don't recompress, but just uncompress the kernel modules: mksquashfs will be better able to compress them
This commit is contained in:
parent
d82ea0f8eb
commit
7cbf44e029
1 changed files with 1 additions and 2 deletions
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}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue