Reduce initramfs size

This will reduce compressed initramfs size on Ubuntu from 89 MB to
28 MB.
This commit is contained in:
Johan Gunnarsson 2023-07-25 19:47:59 +02:00
parent fccc4e41b8
commit 53a9cc2c1d
7 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1 @@
MODULES=dep

View File

@ -0,0 +1,2 @@
COMPRESS=gzip
COMPRESSLEVEL=9

View File

@ -0,0 +1,24 @@
#!/bin/sh -e
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
auto_add_modules base
auto_add_modules block
auto_add_modules mmc
manual_add_modules ext4

View File

@ -0,0 +1,2 @@
COMPRESS=gzip
COMPRESSLEVEL=9

View File

@ -0,0 +1,24 @@
#!/bin/sh -e
PREREQ=""
# Output pre-requisites
prereqs()
{
echo "$PREREQ"
}
case "$1" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
auto_add_modules base
auto_add_modules block
auto_add_modules mmc
manual_add_modules ext4