# 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.
# mkinitramfs -czstd -o /boot/initrd. img-5.4. 0-76-generic 5.4.0-76-generic img-5.4. 0-76-generic foo
# unmkinitramfs /boot/initrd.
# ls foo/
bin conf etc init lib lib64 run sbin scripts usr
# dpkg-query -W initramfs-tools zstd 3ubuntu0. 1
initramfs-tools 0.136ubuntu6.6
zstd 1.4.4+dfsg-
# apt remove --purge zstd img-5.4. 0-76-generic no-zstd
# unmkinitramfs /boot/initrd.
cpio: premature end of archive
With zstd package installed initramfs-tools 0.136ubuntu6.6 works with zstd compressed initrds correctly.