← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2116060] [NEW] Initramfs Compression Options Not Respected in Ubuntu 25.04

 

You have been subscribed to a public bug:

Expecting: kernel initramfs compression.
Result: No compression options respeected.

I have the following in /etc/initramfs-tools/initramfs.conf :
COMPRESS=zstd
COMPRESSLEVEL=9

After process (A):
sudo update-initramfs -v -u  
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-mkconfig -o /boot/efi/EFI/ubuntu/grub.cfg
sudo update-grub2
sudo file /boot/initrd.img-6.14.0-23-generic

Result: /boot/initrd.img-6.14.0-23-generic: ASCII cpio archive (SVR4
with no CRC)

So no compression I assume.

I've also tried /etc/initramfs-tools/conf.d/zstd :
# Additional options for zstd compression
COMPRESSION=zstd
COMPRESSLEVEL=9
ZSTD_OPTIONS="-T0 -9 --long --auto-threads=logical"

Repeat process (A), no compression.

(I wanted to try the last line which informed me of this issue.)

Next, noticing we are moving over to dracut, without installing and replacing initramfs-tools, dracut-core and dracut-install are yet provided due to other dependencies.  So I placed in /etc/dracut.conf.d/zstd.conf :
compress=zstd
compress_options="-T0 -9 --long --auto-threads=logical"

Repeat process (A), no compression.

I also tried changing the compression method to gzip, but it is all left
to not being compressed.

Have we let go of compression? I am sorry if this is a false bug.

 apt-cache policy dracut-install
dracut-install:
  Installed: 106-2ubuntu5
  Candidate: 106-2ubuntu5
  Version table:
 *** 106-2ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/main amd64 Packages
        100 /var/lib/dpkg/status

 apt-cache policy dracut-core   
dracut-core:
  Installed: 106-2ubuntu5
  Candidate: 106-2ubuntu5
  Version table:
 *** 106-2ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/universe amd64 Packages
        100 /var/lib/dpkg/status

 apt-cache policy initramfs-tools
initramfs-tools:
  Installed: 0.147ubuntu1
  Candidate: 0.147ubuntu1
  Version table:
 *** 0.147ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu plucky/main amd64 Packages
        100 /var/lib/dpkg/status

 uname -a
Linux anwiend 6.14.0-23-generic #23-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 23:02:20 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

 lsb_release -rd
Description:    Ubuntu 25.04
Release:        25.04

Dracut package is not installed while I believe dracut-install and
dracut-core with /usr/bin/dracut does exist for cryptsetup-initramfs
dependencies.

** Affects: dracut (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: dracut initramfs-tools zstd
-- 
Initramfs Compression Options Not Respected in Ubuntu 25.04
https://bugs.launchpad.net/bugs/2116060
You received this bug notification because you are a member of Debcrafters packages, which is subscribed to dracut in Ubuntu.


References