Bug#946469: initramfs-tools-core: unmkinitrams creates broken binaries
Package: initramfs-tools-core
Version: 0.135
Severity: normal
Dear Maintainer,
When unmkinitramfs is used on prepended initramfs images, such as the
initrd.img-5.3.0-2-amd64 generated by the linux-image-5.3.0-2-amd64 package,
the symlink at main/lib64/ld-linux-x86-64.so.2 is broken. This seems to be a
result of the use of the "--no-absolute-filenames" flag with cpio.
If I remove this flag and run unmkinitramfs again, the symlink to the linker is
intact, and it's possible to chroot into the extracted initramfs image and run
binaries in main/bin .
I don't know if it's the intention of unmkinitramfs to create functional
binaries in the extracted images, but it's very helpful in my use case!
Thanks for your assistance.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.utf8, LC_CTYPE=en_IE.utf8 (charmap=UTF-8), LANGUAGE=en_IE:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages initramfs-tools-core depends on:
ii coreutils 8.30-3+b1
ii cpio 2.13+dfsg-1
ii e2fsprogs 1.45.4-1
ii klibc-utils 2.0.7-1
ii kmod 26-3
ii logsave 1.45.4-1
ii udev 244-3
Versions of packages initramfs-tools-core recommends:
ii busybox 1:1.30.1-4
ii pigz 2.4-1+b1
Versions of packages initramfs-tools-core suggests:
ii bash-completion 1:2.9-1
-- no debconf information
Reply to: