[Bug 1932542] Re: Add support for zstd
Dimitri John Ledkov
1932542 at bugs.launchpad.net
Tue Jun 22 11:26:52 UTC 2021
# mkinitramfs -czstd -o /boot/initrd.img-5.4.0-76-generic 5.4.0-76-generic
# unmkinitramfs /boot/initrd.img-5.4.0-76-generic foo
# ls foo/
bin conf etc init lib lib64 run sbin scripts usr
# dpkg-query -W initramfs-tools zstd
initramfs-tools 0.136ubuntu6.6
zstd 1.4.4+dfsg-3ubuntu0.1
# apt remove --purge zstd
# unmkinitramfs /boot/initrd.img-5.4.0-76-generic no-zstd
cpio: premature end of archive
With zstd package installed initramfs-tools 0.136ubuntu6.6 works with zstd compressed initrds correctly.
** Tags removed: verification-needed verification-needed-focal
** Tags added: verification-done verification-done-focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1932542
Title:
Add support for zstd
Status in initramfs-tools package in Ubuntu:
Fix Released
Status in initramfs-tools source package in Focal:
Fix Released
Bug description:
[Impact]
* initramfs-tools in impish has changed default initrd compression to
zstd. To allow compressing and uncompressing such initrds on Focal LTS
release we should backport zstd support in the mkinitramfs &
unmkinitramffs tooling. For example ubuntu-cdimage uses unmkinitramfs
tool to unpack and inspect impish initrds on a focal host.
* Cherrypicking the feature from 0.138 release, which is also present
in Hirsute and Impish.
[Test Plan]
* Create initrd with zstd $ mkinitramfs -c zstd -o zstd-initrd.img
* Uncompress it with $ unmkinitramfs ./zstd-initrd.img zstd-initrd-
unpacked
[Where problems could occur]
* This adds support for zstd compressed initrd in both mkinitramfs
and unmkinitramfs. However our GA kernels do not support zstd
compressed initrds. And depends on zstd package is not added either.
Meaning one still has to install zstd to gain the unpack support.
Changing initramfs.conf to zstd may result in unbootable instance when
used with GA kernel.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1932542/+subscriptions
More information about the foundations-bugs
mailing list