Skip to content

Commit

Permalink
Set the initrd compression for the 5.4.y to xz
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Mar 11, 2024
1 parent 3db4851 commit f2aebc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ generate_uinitrd() {
#echo -e "${INFO} Kernel copy results in the [ /usr/lib/modules ] directory: \n$(ls -l /usr/lib/modules) \n"

# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz | zstd ]
[[ "${kernel_outname}" =~ ^5.4.[0-9]+ ]] && compress_format="xz"
compress_initrd_file="/etc/initramfs-tools/initramfs.conf"
sed -i "/^COMPRESS=/d" ${compress_initrd_file}
echo "COMPRESS=${compress_format}" >>${compress_initrd_file}
Expand Down
1 change: 1 addition & 0 deletions recompile
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ generate_uinitrd() {
#echo -e "${INFO} Kernel copy results in the [ ${tag_rootfs}/usr/lib/modules ] directory: \n$(ls -l ${tag_rootfs}/usr/lib/modules) \n"

# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz | zstd ]
[[ "${kernel_outname}" =~ ^5.4.[0-9]+ ]] && compress_format="xz"
compress_initrd_file="${tag_rootfs}/etc/initramfs-tools/initramfs.conf"
sed -i "/^COMPRESS=/d" ${compress_initrd_file}
echo "COMPRESS=${compress_format}" >>${compress_initrd_file}
Expand Down

0 comments on commit f2aebc7

Please sign in to comment.