← Back to team overview

debcrafters-packages team mailing list archive

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

 

Thank you for taking the time to report this bug and contributing to
Ubuntu.

There are different topics to unpack:

1. dracut-install is used both by dracut and initramfs-tools. To
determine what you use check following conflicting packages: dracut and
initramfs-tools. Since you have initramfs-tools installed, you use
initramfs-tools.

2. What command do you use for your "Result" line? The initrd.img
consists of multiple concatenated cpios. To check the compression, can
you use "3cpio --examine /boot/initrd.img"?

** Package changed: dracut (Ubuntu) => initramfs-tools (Ubuntu)

** Changed in: initramfs-tools (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to dracut in Ubuntu.
https://bugs.launchpad.net/bugs/2116060

Title:
  Initramfs Compression Options Not Respected in Ubuntu 25.04

Status in initramfs-tools package in Ubuntu:
  Incomplete

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2116060/+subscriptions



References