diff -Nru initramfs-tools-0.130ubuntu3.12/debian/changelog initramfs-tools-0.130ubuntu3.13/debian/changelog --- initramfs-tools-0.130ubuntu3.12/debian/changelog 2021-03-18 18:48:17.000000000 +0000 +++ initramfs-tools-0.130ubuntu3.13/debian/changelog 2021-07-01 13:11:48.000000000 +0000 @@ -1,3 +1,9 @@ +initramfs-tools (0.130ubuntu3.13) bionic; urgency=medium + + * Backport zstd and lz4 support from focal. LP: #1932542 + + -- Dimitri John Ledkov Thu, 01 Jul 2021 14:11:48 +0100 + initramfs-tools (0.130ubuntu3.12) bionic; urgency=medium * scripts/local-premount/resume: diff -Nru initramfs-tools-0.130ubuntu3.12/mkinitramfs initramfs-tools-0.130ubuntu3.13/mkinitramfs --- initramfs-tools-0.130ubuntu3.12/mkinitramfs 2021-03-18 18:48:17.000000000 +0000 +++ initramfs-tools-0.130ubuntu3.13/mkinitramfs 2021-07-01 13:10:15.000000000 +0000 @@ -152,6 +152,8 @@ fi [ "${compress}" = lzop ] && compress="lzop -9" +[ "${compress}" = lz4 ] && compress="lz4 -9 -l" +[ "${compress}" = zstd ] && compress="zstd -q -19 -T0" [ "${compress}" = xz ] && compress="xz --check=crc32" if [ -d "${outfile}" ]; then diff -Nru initramfs-tools-0.130ubuntu3.12/unmkinitramfs initramfs-tools-0.130ubuntu3.13/unmkinitramfs --- initramfs-tools-0.130ubuntu3.12/unmkinitramfs 2021-03-18 18:48:17.000000000 +0000 +++ initramfs-tools-0.130ubuntu3.13/unmkinitramfs 2021-07-01 13:11:30.000000000 +0000 @@ -16,8 +16,12 @@ if zcat -t "$archive" >/dev/null 2>&1 ; then zcat "$archive" + elif zstd -q -c -t "$archive" >/dev/null 2>&1 ; then + zstd -q -c -d "$archive" elif xzcat -t "$archive" >/dev/null 2>&1 ; then xzcat "$archive" + elif lz4cat -t < "$archive" >/dev/null 2>&1 ; then + lz4cat "$archive" elif bzip2 -t "$archive" >/dev/null 2>&1 ; then bzip2 -c -d "$archive" elif lzop -t "$archive" >/dev/null 2>&1 ; then