EDIT: I hoped to attach bug_inducing_initramfs.img to this comment, but
that has failed twice. Posting just this text first, then I will re-try
attaching the file on its own.
I can reproduce this bug, using the attached initramfs image, with both
Ubuntu 22.04 aarch64 64k (the host that generated the initramfs, in
/boot/initrd.img-6.8.0-1045-nvidia-64k ) and with an Ubuntu 24.04 x86_64
host.
Below is an example of me reproducing this bug on the Ubuntu 24.04
x86_64 host:
```
$ ls -l
total 205696
-rw-r--r-- 1 juggla juggla 210626152 Feb 2 12:11 bug_inducing_initramfs.img
lrwxrwxrwx 1 juggla juggla 26 Feb 2 12:12 symlink ->
bug_inducing_initramfs.img
$ file bug_inducing_initramfs.img
bug_inducing_initramfs.img: Zstandard compressed data (v0.8+), Dictionary ID:
None
$ lsinitramfs symlink
cpio: premature end of archive
$ echo $?
2
$ lsinitramfs bug_inducing_initramfs.img | wc -l
4581
$ echo $?
0
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noble
$ lsinitramfs --version
/usr/bin/lsinitramfs: unrecognized option '--version'
Usage: lsinitramfs [-l] initramfs-file...
Options:
-l Display long and more verbose listing of initramfs content
See lsinitramfs(8) for further details.
$ type lsinitramfs
lsinitramfs is hashed (/usr/bin/lsinitramfs)
$ dpkg -S /usr/bin/lsinitramfs
initramfs-tools-core: /usr/bin/lsinitramfs
$ apt policy initramfs-tools-core
initramfs-tools-core:
Installed: 0.142ubuntu25.5
Candidate: 0.142ubuntu25.5
Version table:
*** 0.142ubuntu25.5 500
500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu noble-updates/main i386 Packages
100 /var/lib/dpkg/status
0.142ubuntu25 500
500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu noble/main i386 Packages
$
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1999881
Title:
unmkinitramfs fails with symlinked zstd compressed initrds
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1999881/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs