Bzip2 compression in Linux initramfs/kernel

There isn't really any reason to use gzip instead of bzip2 for the Linux
initramfs/kernel, since we have it!

Saves a few MB (~13MB as far as I can tell)
This commit is contained in:
fosslinux 2024-05-28 21:53:15 +10:00
parent c30ace4d4c
commit 7937797ea5
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ if [ "${KERNEL_BOOTSTRAP}" = True ]; then
find / -xdev -type d -printf "dir %p %m %U %G\n" >> /initramfs.list
find / -xdev -type f -printf "file %p %p %m %U %G\n" >> /initramfs.list
find / -xdev -type l -printf "slink %p %l %m %U %G\n" >> /initramfs.list
kexec-linux "/dev/ram1" "/boot/vmlinuz" "!gen_init_cpio /initramfs.list | gzip -c"
kexec-linux "/dev/ram1" "/boot/vmlinuz" "!gen_init_cpio /initramfs.list | bzip2 -c"
else
mkdir /etc
# kexec time