Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158135 - genkernel-3.4.4 - generated initrd misses directories
Summary: genkernel-3.4.4 - generated initrd misses directories
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-12-14 06:23 UTC by Erwin Paternotte
Modified: 2007-01-04 09:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erwin Paternotte 2006-12-14 06:23:03 UTC
On my newly installed laptop I tried to generate a LUKS enabled initrd for my encrypted root partition. I noticed that the gen_initramfs.sh script of genkernel (3.4.4) concatenates the previously generated individual gzipped cpio files in a incorrect way to one gzipped initrd. The result is a single initrd, which is missing several  files in several directories. This is caused by the following incorrect code:

line 550 geninitramfs.sh:
cat ${MERGE_LIST} > ${TMPDIR}/initramfs-${KV}

The easiest way to prove this is to disable the removal of the cpio directory (CLEAR_CPIO_CACHE switch in /etc/genkernel) and list the files in each the files with a cpio -t < <cpio_file> for all the individual generated cpio's. Now do the same for the single concatenated cpio and you will see the difference.

I worked around this bug by extracting the individual cpio's to a temp directory and regenerating one single cpio. This seems to work, although it might not be the best way to solve this bug. Let me know if you would like me to post the patch.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-14 06:26:58 UTC
Don't touch the restrict bug checkboxes if you have no clue what are they used for; thanks.
Comment 2 Erwin Paternotte 2006-12-14 06:30:45 UTC
Sorry, it's my first bug report for Gentoo, so I am not familiar with all the bells and whistles bugzilla offers.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-14 08:12:44 UTC
This is already fixed in SVN and will be fixed when a new version of genkernel is released.  For future bug reports, make sure your bug isn't already fixed in a newer version of the software.  Sometimes bugs are fixed in the latest testing version but haven't yet made it to stable.  Of course, in this case, that isn't the case... just letting you know.  =]
Comment 4 Erwin Paternotte 2006-12-14 08:24:07 UTC
Ok, forgot to mention I did also check the latest unstable version. That's kind of standard procedure for me. Thanks for the fast response.

Erwin
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-04 09:21:38 UTC
Fixed in 3.4.6