Make module compressor a little nicer

This commit is contained in:
Fierelier 2022-11-08 21:31:38 +01:00
parent 10d0549c69
commit 47e48dba2b

View File

@ -4,8 +4,8 @@ set -e
for i in $(find /lib/modules -name "*.ko"); do
if [ "$(file "$i"|grep ELF)" != "" ]; then
>&2 echo "> $i ..."
xz -9 $i
mv $i.xz $i
xz -9 "$i"
mv "$i.xz" "$i"
fi
done
/usr/sbin/update-initramfs $*