Skip to content

Commit

Permalink
xz kernel modules it is
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi authored Dec 18, 2021
1 parent 3097ec9 commit 47ee9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ sed -i 's/zstd -q -19 -T0/zstd -q --ultra -22 -T0/g' work/chroot/sbin/mkinitramf
# fi
# * Compress remaining kernel modules (like 3MB size reduction)
find work/chroot/lib/modules/*/kernel/* -type f -name "*.ko" -exec strip --strip-unneeded {} +
find work/chroot/lib/modules/*/kernel/* -type f -name "*.ko" -exec zstd --rm --ultra -zq22 -T0 {} +
find work/chroot/lib/modules/*/kernel/* -type f -name "*.ko" -exec xz --x86 -e9T0 {} +
depmod -b work/chroot "$(basename "$(find work/chroot/lib/modules/* -maxdepth 0)")"
chroot work/chroot update-initramfs -u

Expand Down

0 comments on commit 47ee9bb

Please sign in to comment.