Add LZ4 support to initramfs-tools

Bug #1488620 reported by Benjamin Tegge
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Debian)
Fix Released
Unknown
initramfs-tools (Ubuntu)
Fix Released
Low
Andy Whitcroft
initramfs-tools-ubuntu-core (Ubuntu)
New
Undecided
Unassigned

Bug Description

Original Bug Text
=================

I found that I could enable LZ4 compression for initramfs on my vivid machine by installing liblz4-tool package, adding one line to mkinitramfs and installing a kernel compiled with CONFIG_CRYPTO_LZ4=y.

Please include support for (legacy) LZ4.

Attached patch includes changes made to the latest version (initramfs-tools_0.120ubuntu3).

Revision history for this message
Benjamin Tegge (livewirebt) wrote :
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Andy Whitcroft (apw)
milestone: none → ubuntu-16.02
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-16.02 → ubuntu-16.03
tags: added: id-5a5c8385a2edbafa109c8394
Revision history for this message
Julian Andres Klode (juliank) wrote :

Should we use zstd instead? Compression time is about the same as lz4, but size is much smaller (49MB instead of 75MB for me). Not sure about decompression support.

Revision history for this message
Benjamin Tegge (livewirebt) wrote :

I haven't done any benchmark comparisons between the two but zstd would be great.

Thumbs up on the work you and others are doing to implement zstd into packaging.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Apparently the kernel does not yet support zstd for initramfs, but it would be nice if it did.

Revision history for this message
Balint Reczey (rbalint) wrote :

I plan uploading the attached fix in the next days after discussing this a bit on ubuntu-devel.

tags: added: patch
Revision history for this message
Balint Reczey (rbalint) wrote :

Initramfs-tools-core should also suggest liblz4-tool package.

Balint Reczey (rbalint)
summary: - Add LZ4 support
+ [FFe] Add LZ4 support to initramfs-tools
Balint Reczey (rbalint)
description: updated
description: updated
Changed in initramfs-tools (Ubuntu):
status: Triaged → New
Revision history for this message
Steve Langasek (vorlon) wrote : Re: [FFe] Add LZ4 support to initramfs-tools

This is a low-priority bug and has missed the window for 18.04. I'm nack'ing this for FFe.

The original request remains valid, so I'm resetting this to a non-FFe bug rather than closing it.

summary: - [FFe] Add LZ4 support to initramfs-tools
+ Add LZ4 support to initramfs-tools
description: updated
Balint Reczey (rbalint)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-16.03 → ubuntu-18.04.1
Revision history for this message
Balint Reczey (rbalint) wrote :

The fix was picked by Debian and is included in Ubuntu starting with 131ubuntu1 in Cosmic.

Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
Changed in initramfs-tools (Debian):
status: Unknown → Fix Released
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Ubuntu core devices forced set LZMA which is now unsupported, fixing to use LZ4 on these now as well.

Revision history for this message
Paul Menzel (paulmenzel) wrote :

Can this be closed/tagged as fixed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.