Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384857 - Can't load loop image from NFS that is a symlink
Summary: Can't load loop image from NFS that is a symlink
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-28 23:16 UTC by Alex Legler (RETIRED)
Modified: 2012-12-20 15:39 UTC (History)
0 users

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


Attachments
patch (0001-Do-not-use-cp-a-when-copying-the-loop-image.patch,1.02 KB, patch)
2011-09-28 23:16 UTC, Alex Legler (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Legler (RETIRED) archtester gentoo-dev Security 2011-09-28 23:16:47 UTC
Created attachment 288141 [details, diff]
patch

PXE-booting for instance with these settings

real_root=/dev/nfs looptype=squashfs loop=liveimage nfsroot=10.0.0.1:/data/nfsroot docache ip=dhcp cdroot nodevfs

and "liveimage" on the $nfsroot being a symlink, for instance to "liveimage-20110926" does not work.

cache_cd_contents() in default/initrd.scripts uses `cp -a', which preserves the symlink. I don't think there's a use case where the symlink has to be preserved. The function doesn't support copying any linked files anyway. I'll attach a patch that removes the -a from the cp invocation, not preserving symlinks.
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2012-12-20 15:39:44 UTC
hi?