On 01/19/2016 10:15 AM, Peter Maydell wrote:
> On 15 January 2016 at 18:15, Richard Henderson <[email protected]> wrote:
>>    .../qemu/run/qemu-alpha -> .../gcc/run-cross/alphaev67-linux/sys-root
>>    .../qemu/run/qemu-arm -> .../gcc/run-cross/arm-linux-gnueabi/sys-root
>>    .../qemu/run/qemu-sparc -> .../gcc/run-cross/sparc64-linux/sys-root
>>    .../qemu/run/qemu-sparc64 -> .../gcc/run-cross/sparc64-linux/sys-root
>>
>> The DT_LNK is required for traversing even the first link.
> 
> Right. So the path.c code is definitely buggy, but this patch
> isn't the right way to fix it. It really doesn't behave
> sensibly if you point it at a full root fs, but lots of people
> want to do that, so it would be nice if it worked...
> 
> I think the underlying thing the code is trying to do is
> create a sort of union-mount of the real root filesystem and
> the directory you point at with -L. We need to do that in a way
> that doesn't insist on scanning everything in the -L directory
> on startup.

I'm happy with any fix that lets my setup above work.  ;-)


r~

Reply via email to