On 01/08/10 21:25, [email protected] wrote: > On Thu, Jan 07, 2010 at 11:15:23PM -0600, Bruce Dubbs wrote: >> [email protected] wrote: >>> Hello, >>> >>> I'm having a problem with configuring the network scripts in the >>> LFS book 6.5. The file /etc/udev/rules.d/70-persistent-net.rules >>> doesn't appear to be created. In particular, in chapter 7.13.1 is >>> the blurb of code to pre-generate the udev rules file >>> >>> for NIC in /sys/class/net/* ; do >>> INTERFACE=${NIC##*/} udevadm test --action=add $NIC >>> done >>> >>> followed by the blurb to inspect the 70-persistent-net.rules file. >>> >>> cat /etc/udev/rules.d/70-persistent-net.rules >>> >>> The problem is that /etc/udev/rules.d/70-persistent-net.rules is not >>> created. >>> Did I miss running a command in the previous chapters ... perhaps >>> /lib/udev/write_net_rules? >>> >>> Here is the link to the web page with the code in question >>> >>> http://www.linuxfromscratch.org/lfs/view/stable/chapter07/network.html >>> >>> Also, the host os is a freshly installed Centos 5.4 server in a >>> virtualbox.com VM, all running under MAC Snow Leopard. >> >> Does the VM have a NIC? What are the results of >> >> ls /sys/class/net/ >> > > Yes, the NIC is configured and working in the host. > I'm acccessing the host via ssh. > > The output of the ls and cat commands follow: > > root:~# ls /sys/class/net/ > eth0 lo sit0 > root:~# cat /etc/udev/rules.d/70-persistent-net.rules > cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or > directory > >> You should have a eth0. The udevadm test generates the >> 70-persistent-net.rules file: >> > > Nope, appears that /etc/udev/rules.d/70-persistent-net.rules is missing. > I see many but no obvious errors in the output of of the 'for' loop in the > blurb in paragraph 7.13.1: > > for NIC in /sys/class/net/* ; do > INTERFACE=${NIC##*/} udevadm test --action=add $NIC > done > > Perplexing. > >> $ cat /etc/udev/rules.d/70-persistent-net.rules >> # This file was automatically generated by the /lib/udev/write_net_rules >> # program, run by the persistent-net-generator.rules rules file. >> # >> # You can modify it, as long as you keep each rule on a single >> # line, and change only the value of the NAME= key. >> >> # PCI device 0x8086:0x10de (e1000e) >> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", >> ATTR{address}=="00:25:64:38:ec:dd", ATTR{type}=="1", KERNEL=="eth*", >> NAME="eth0" >> >> -- Bruce >> -- >> http://linuxfromscratch.org/mailman/listinfo/lfs-support >> FAQ: http://www.linuxfromscratch.org/lfs/faq.html >> Unsubscribe: See the above information page > > Since udev isn't critical to booting a kernel, I suppose > I can keep soldiering forward, but I'd prefer to follow the letter of > the Book ... > > -j
you should be fine. over here I think I was hitting some odd quirk(but could be wrong), i.g. two iMac's both the same system yet one gave a long pause during boot(you gots me!!) Justin P. Mattock -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
