On 08/04/10 10:17, jumbophut wrote:
> After running the code in section 7.13, viz:
>
> "for NIC in /sys/class/net/* ; do
> INTERFACE=${NIC##*/} udevadm test --action=add $NIC
> done"
>
> I cannot find the /etc/udev/rules.d/70-persistent-net.rules file that
> is supposed to have been generated.
>
> I have spent some time trying to track down the reason why the file is
> not created.
>
> As far as I can tell /lib/udev/write_net_rules is not being invoked at
> all, and this is possibly because the following line in
> /lib/udev/rules.d/75-persistent-net-generator.rules is not generating
> a match:
>
> DRIVERS=="?*", IMPORT{program}="write_net_rules"
>
> The output of /udevadm info --attribute-walk --path=/sys/class/net/eth0 is:
>
> looking at device '/class/net/eth0':
> KERNEL=="eth0"
> SUBSYSTEM=="net"
> DRIVER==""
> ATTR{addr_len}=="6"
> ATTR{dev_id}=="0x0"
> ATTR{iflink}=="2"
> ATTR{ifindex}=="2"
> ATTR{features}=="0x0"
> ATTR{type}=="1"
> ATTR{link_mode}=="0"
> ATTR{address}=="00:04:xx:xx:xx:xx" [MAC address blanked out by
> me, but first 2 hex bytes are correct]
> ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
> ATTR{carrier}=="1"
> ATTR{dormant}=="0"
> ATTR{operstate}=="up"
> ATTR{mtu}=="1500"
> ATTR{flags}=="0x1003"
> ATTR{tx_queue_len}=="1000"
>
> looking at parent device '/class/net':
> KERNELS=="net"
> SUBSYSTEMS=="subsystem"
> DRIVERS==""
>
> A problem that may be related to this has been referred to before on
> this list, but not solved. See:
> http://www.linuxfromscratch.org/pipermail/lfs-support/2010-January/037398.html
>
> Any suggestions for how to fix this would be appreciated (although
> since I have just the one network card I am hopeful that things will
> work regardless once I have a full LFS system).
>
I don't know why the file isn't being created, but I would expect the ethernet
connection to work anyway. If you want to create the file by hand, something
like
this should work:
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", \
ATTR{address}==\"00:04:xx:xx:xx:xx\", ATTR{dev_id}==\"0x0\", \
ATTR{type}==\"1\", KERNEL==\"eth*\", NAME=\"eth0\"" \
> /etc/udev/rules.d/70-persistent-net.rules
Change 00:04:xx:xx:xx:xx for your actual mac address
Andy
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page