Default initrd is LZMA compressed, yet rebuilt initramfs are gzip?

Bug #1671536 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Fix Released
Low
Unassigned
initramfs-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ file ~/Downloads/xenial-server-cloudimg-amd64-initrd-generic
/home/xnox/Downloads/xenial-server-cloudimg-amd64-initrd-generic: LZMA compressed data, streamed

Yet, in the base image I don't see that initramfs config options set COMPRESS=lzma. Thus first boot is lzma, yet on package upgrades i guess initrd would be regenerated as gzip...

Isn't the fact that all of our images use lzma and/or xz compression means we should switch Ubuntu default to lzma and/or xz as well?

Revision history for this message
Dan Watkins (oddbloke) wrote :

This is strange. I just booted an older image and then installed a
kernel:

$ file /boot/initrd.img-4.4.0-62-generic
/boot/initrd.img-4.4.0-62-generic: LZMA compressed data, streamed
$ sudo apt update
...
$ sudo apt upgrade
...
$ file /boot/initrd.img-4.4.0-6*
/boot/initrd.img-4.4.0-62-generic: gzip compressed data, last modified: Thu Mar 9 15:48:51 2017, from Unix
/boot/initrd.img-4.4.0-66-generic: gzip compressed data, last modified: Thu Mar 9 15:49:52 2017, from Unix

I'm guessing that it comes from "--initramfs-compression lzma" on line
613 of live-build/auto/config in livecd-rootfs; I'd expect this to
translate in to some configuration in the built image, but I guess not.

Dan Watkins (oddbloke)
Changed in cloud-images:
importance: Undecided → Low
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I believe livecd-rootfs and live-build have been fixed for this.

Changed in cloud-images:
status: New → Fix Released
Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
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.