On 30/08/10 14:43, Andreas Kasenides wrote:
> I have been trying to build LFS 6.5 with jhalfs 2.3.2 but have found out
> that it
> fails with script 131-network. As far as I can tell this script tries
> to configure the network devices eth0,1... and lo (by doing a udev --test
> on
> devices in the /sys/classes/net/*)!!
> Isn't this the wrong thing to do at that point in the build?
> Since at that point we are running in a chroot environment
> it is not possible to discover any ethernet devices (or any devices for
> that
> matter) that udev is supposed to discover at boot time and appropriately
> mount the /sys filesystem.
> 
> Am I missing something?
> 

I've never used jhlfs but shouldn't that be udevadm test?

http://archive.linuxfromscratch.org/lfs-museum/6.5/LFS-BOOK-6.5-HTML/chapter07/network.html

for NIC in /sys/class/net/* ; do
    INTERFACE=${NIC##*/} udevadm test --action=add $NIC
done

/sys should be mounted in chroot:

see 
http://archive.linuxfromscratch.org/lfs-museum/6.5/LFS-BOOK-6.5-HTML/chapter06/kernfs.html

mount -vt sysfs sysfs $LFS/sys

udev has been compiled, /sys is available, why wouldn't udevadm work?

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to