On Wed, Feb 11, 2015 at 08:03:08PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote: > >> As if you use symlink the nfs will not work > >> it was work on defaultenv as it’s use the nfs commande and not FS > >> The nfs command handle symlink; > > > > Let me recap: On the host you have some directory exported as NFS. It > > contains a link to some other position: > > > > /export/somelink -> /some/other/file > > > > Now if I mount /export on barebox 'somelink' points to /some/other/file, > > a path that doesn't exist in barebox, some the file cannot be read. The > > NFS command implementation now mounts '/some/other' from the NFS server > > and reads 'file' from that location. > > > > This is really a misfeature is something that we shouldn't support at > > all. > > > > Can't you just make your link a relative one inside the exported > > directory? That works just fine and as expected. > > unfortunately no can’t do so why not just add my old patch that work in all case Because symbolic links are to be interpreted on the client, not on the server. You are depending on some misfeature that went into a 2004 U-Boot supposedly by accident. Anyway, your patch back then proved that it's possible to do what you want with defaultenv-2. It shouldn't be a problem to put this script you created on your board. If you don't want to depend on the environment on stored on the board you could also cherry-pick a patch which adjusts the defaultenv to your needs before compiling barebox. As said, there can be only one defaultenv per board and this won't match everyones needs. I fail to see why this should be an exotic setup for your personal testing needs. We also do automated testing here and have to deal with the fact that the boards defaultenvironment doesn't fit out needs for this. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox