Add mod: legacy-initramfs

This commit is contained in:
Fierelier 2022-08-17 07:16:59 +02:00
parent e816532fb3
commit 095118be90
6 changed files with 26 additions and 0 deletions

1
modlists/legacy Normal file
View File

@ -0,0 +1 @@
legacy-initramfs

View File

@ -0,0 +1,4 @@
#!/bin/bash
set -e
apt -y install findutils file xz-utils
update-initramfs -u

View File

@ -0,0 +1,2 @@
#MODULES=list
COMPRESS=xz

View File

@ -0,0 +1,5 @@
DISABLE_FAT=true
DISABLE_FUSE=true
DISABLE_NTFS=true
DISABLE_USB=true
MINIMAL=true

View File

@ -0,0 +1,2 @@
#!/bin/sh
cat "$2"

View File

@ -0,0 +1,12 @@
#!/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 -1 $i
mv $i.xz $i
fi
done
/usr/sbin/update-initramfs $*
exit $?