Created attachment 308741 [details, diff] patch, works fine for me # LANG=C lsinitrd /boot/initramfs.img /boot/initramfs.img: 0 ======================================================================== gzip: /boot/initramfs.img: not in gzip format ======================================================================== gzip: /boot/initramfs.img: not in gzip format cpio: premature end of archive ======================================================================== # file /boot/initramfs.img /boot/initramfs.img: symbolic link to `/boot/initramfs-3.2.12-gentoo.img' # file /boot/initramfs-3.2.12-gentoo.img /boot/initramfs-3.2.12-gentoo.img: XZ compressed data # lsinitrd /boot/initramfs-3.2.12-gentoo.img # works fine The problem is in lin 37 of /usr/bin/lsinitrd: FILE_T=$(file "$image") Attached patch solves it for me.
Sent upstream, thank you! Will apply in ebuild when it will be approved.
+*dracut-018-r1 (16 May 2012) + + 16 May 2012; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-018-r1.ebuild, + +files/dracut-018-lsinitrd-support-symlinks.patch: + Fixes bug #411821. Thanks to Nikoli <nikoli@lavabit.com> for the patch. +