Hi All, This is just a small patch. In the guide, it says to copy the resolv.conf file to the chroot using 'cp -L'. I personally have found this unneccesary in the past -- but, more importantly, this doesn't work on the Gentoo/MIPS netboot images, which rely on the coreutils commands provided by Busybox. As the 'cp' command in Busybox does not recognise -L, the user is greeted with an 'invalid option -- L' error message. The alternative command, which is failsafe, is: cat /etc/resolv.conf > /mnt/gentoo/resolv.conf Could someone with CVS access either apply the attached patch (I'll attach it shortly), or make the appropriate edits? Thanks, Stuart Longland
Created attachment 56080 [details, diff] Patch to fix bug #88841
-L is POSIX so i could just add it to busybox
-L cannot be removed. It was added for a very good reason: dhcp users ended up with a wrong symlink instead of a valid resolv.conf after chroot'ing. Best solution would be to have it supported by busybox. Otherwise, we need yet another "if".
ok, busybox's cp acts like -L by default so i'll just update it to ignore the -L option (which is a 1 line fix)
Created attachment 56212 [details, diff] busybox-cp-ignore-L.diff -- Patch to add -L to 'cp' Hi, Fair enough -- that's another way around it. I've already got a patch that tells 'cp' to recognise -L, but at the moment it does nothing with it. I was going to wait until I had implemented -L properly. :-)
i already added this upstream ... just have to grab it and it to our portage tree ...
1.00-r2 has the updated cp now