Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411821 - sys-kernel/dracut-018: lsinitrd is not able detect XZ format for symlinks
Summary: sys-kernel/dracut-018: lsinitrd is not able detect XZ format for symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 07:17 UTC by Nikoli
Modified: 2012-05-16 09:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch, works fine for me (0001-lsinitrd-support-symlinks.patch,699 bytes, patch)
2012-04-13 07:17 UTC, Nikoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2012-04-13 07:17:15 UTC
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.
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-04-17 09:32:42 UTC
Sent upstream, thank you! Will apply in ebuild when it will be approved.
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-05-16 09:49:49 UTC
+*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.
+