windvn/mods/legacy-initramfs/data/usr/local/bin/update-initramfs
2022-11-08 21:31:38 +01:00

12 lines
268 B
Bash
Executable File

#!/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 ..."
xz -9 "$i"
mv "$i.xz" "$i"
fi
done
/usr/sbin/update-initramfs $*
exit $?