diff -Nru initramfs-tools-0.130ubuntu3/conf/initramfs.conf initramfs-tools-0.130ubuntu4/conf/initramfs.conf --- initramfs-tools-0.130ubuntu3/conf/initramfs.conf 2018-01-05 13:44:09.000000000 +0100 +++ initramfs-tools-0.130ubuntu4/conf/initramfs.conf 2018-03-19 13:39:11.000000000 +0100 @@ -47,7 +47,7 @@ COMPCACHE_SIZE="" # -# COMPRESS: [ gzip | bzip2 | lzma | lzop | xz ] +# COMPRESS: [ gzip | bzip2 | lz4 | lzma | lzop | xz ] # COMPRESS=gzip diff -Nru initramfs-tools-0.130ubuntu3/debian/changelog initramfs-tools-0.130ubuntu4/debian/changelog --- initramfs-tools-0.130ubuntu3/debian/changelog 2018-02-20 22:35:17.000000000 +0100 +++ initramfs-tools-0.130ubuntu4/debian/changelog 2018-04-11 23:37:21.000000000 +0200 @@ -1,3 +1,13 @@ +initramfs-tools (0.130ubuntu4) bionic; urgency=medium + + [ Benjamin Tegge ] + * mkinitramfs: support lz4 as compress method (LP: #1488620) + + [ Balint Reczey ] + * unmkinitramfs: support lz4 as compress method + + -- Balint Reczey Wed, 11 Apr 2018 23:37:21 +0200 + initramfs-tools (0.130ubuntu3) bionic; urgency=medium * Fix resuming a hibernate session from a swapfile (LP: #1644975) diff -Nru initramfs-tools-0.130ubuntu3/debian/control initramfs-tools-0.130ubuntu4/debian/control --- initramfs-tools-0.130ubuntu3/debian/control 2018-01-05 13:22:04.000000000 +0100 +++ initramfs-tools-0.130ubuntu4/debian/control 2018-04-11 23:35:36.000000000 +0200 @@ -28,7 +28,7 @@ Architecture: all Multi-Arch: foreign Depends: ${busybox:Depends}, initramfs-tools-bin (= ${binary:Version}), klibc-utils (>= 2.0.4-8~), cpio, kmod | module-init-tools, udev, ${misc:Depends} -Suggests: bash-completion +Suggests: bash-completion, liblz4-tool Breaks: initramfs-tools (<< 0.121~), ${busybox:Breaks} Replaces: initramfs-tools (<< 0.121~) Description: generic modular initramfs generator (core tools) diff -Nru initramfs-tools-0.130ubuntu3/mkinitramfs initramfs-tools-0.130ubuntu4/mkinitramfs --- initramfs-tools-0.130ubuntu3/mkinitramfs 2018-01-05 13:27:32.000000000 +0100 +++ initramfs-tools-0.130ubuntu4/mkinitramfs 2018-03-19 13:39:19.000000000 +0100 @@ -151,6 +151,7 @@ echo "linux-2.6 likely misses ${COMPRESS} support, using gzip" fi +[ "${compress}" = lz4 ] && compress="lz4 -9 -l" [ "${compress}" = lzop ] && compress="lzop -9" [ "${compress}" = xz ] && compress="xz --check=crc32" diff -Nru initramfs-tools-0.130ubuntu3/unmkinitramfs initramfs-tools-0.130ubuntu4/unmkinitramfs --- initramfs-tools-0.130ubuntu3/unmkinitramfs 2018-01-05 13:15:45.000000000 +0100 +++ initramfs-tools-0.130ubuntu4/unmkinitramfs 2018-03-19 13:39:19.000000000 +0100 @@ -18,6 +18,8 @@ zcat "$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