windvn/mods/legacy-initramfs/data/usr/local/bin/update-initramfs
2022-08-17 07:36:04 +02:00

12 lines
262 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 $?