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