windvn/mods/legacy-initramfs/data/usr/local/bin/update-initramfs

12 lines
268 B
Plaintext
Raw Normal View History

2022-08-17 05:16:59 +00:00
#!/bin/bash
set -e
>&2 echo "Compressing modules ..."
for i in $(find /lib/modules -name "*.ko"); do
if [ "$(file "$i"|grep ELF)" != "" ]; then
>&2 echo "> $i ..."
2022-11-08 20:31:38 +00:00
xz -9 "$i"
mv "$i.xz" "$i"
2022-08-17 05:16:59 +00:00
fi
done
/usr/sbin/update-initramfs $*
exit $?