Add mod: legacy-initramfs
This commit is contained in:
parent
e816532fb3
commit
095118be90
1
modlists/legacy
Normal file
1
modlists/legacy
Normal file
@ -0,0 +1 @@
|
||||
legacy-initramfs
|
4
mods/legacy-initramfs/data/chroot
Executable file
4
mods/legacy-initramfs/data/chroot
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apt -y install findutils file xz-utils
|
||||
update-initramfs -u
|
@ -0,0 +1,2 @@
|
||||
#MODULES=list
|
||||
COMPRESS=xz
|
5
mods/legacy-initramfs/data/etc/live/boot/00-legacy
Normal file
5
mods/legacy-initramfs/data/etc/live/boot/00-legacy
Normal file
@ -0,0 +1,5 @@
|
||||
DISABLE_FAT=true
|
||||
DISABLE_FUSE=true
|
||||
DISABLE_NTFS=true
|
||||
DISABLE_USB=true
|
||||
MINIMAL=true
|
2
mods/legacy-initramfs/data/usr/bin/wdvn-cat
Executable file
2
mods/legacy-initramfs/data/usr/bin/wdvn-cat
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
cat "$2"
|
12
mods/legacy-initramfs/data/usr/local/bin/update-initramfs
Executable file
12
mods/legacy-initramfs/data/usr/local/bin/update-initramfs
Executable 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 $?
|
Loading…
Reference in New Issue
Block a user