Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105572 - genkernel: linuxrc in initramfs links to temporary file.
Summary: genkernel: linuxrc in initramfs links to temporary file.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
: 109364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-11 00:27 UTC by nilburn
Modified: 2005-11-22 12:08 UTC (History)
2 users (show)

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


Attachments
gen_initramfs.sh patch (gen_initramfs.sh.patch,494 bytes, patch)
2005-09-11 00:30 UTC, nilburn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nilburn 2005-09-11 00:27:58 UTC
linuxrc in initramfs links to
/var/tmp/genkernel/4078.8177.6654.17758/initramfs-aux-temp/init

$ zcat initramfs-aux.cpio.gz | cpio -tv
-rwxr-xr-x   1 root     root        17192 Sep 11 15:50 init
drwxr-xr-x   2 root     root            0 Sep 11 15:50 sbin
lrwxrwxrwx   1 root     root            7 Sep 11 15:50 sbin/init -> ../init
-rwxr-xr-x   1 root     root         2299 Sep 11 15:50 sbin/modprobe
lrwxrwxrwx   1 root     root           63 Sep 11 15:50 linuxrc ->
/var/tmp/genkernel/4078.8177.6654.17758/initramfs-aux-temp/init

I think that it should use hard link in this case.




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 nilburn 2005-09-11 00:30:58 UTC
Created attachment 68160 [details, diff]
gen_initramfs.sh patch
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-28 12:15:39 UTC
Changed directory before making symlink, making it a relative link.  Making it a
hard link just hid the problem, it didn't resolve it.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-28 12:44:25 UTC
*** Bug 109364 has been marked as a duplicate of this bug. ***
Comment 4 Eric Edgar (RETIRED) gentoo-dev 2005-11-22 12:08:25 UTC
 fixed in 3.3.7