Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384857

Summary: Can't load loop image from NFS that is a symlink
Product: Gentoo Hosted Projects Reporter: Alex Legler (RETIRED) <a3li>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch

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?