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).

Regards
Tony


FURTHER SETUP/SYSTEM INFORMATION.
==================================

I am:

* using Version 6.6 of the LFS book (the previous appearance of the
problem was in version 6.5).
* running Debian Lenny on an ix86 machine (Pentium III).
* not deviating from the instructions in the book (not consciously, anyway)

Output of 'bash version-check.sh':

bash, version 3.2.39(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Debian) 2.18.0.20080103
bison (GNU Bison) 2.3
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
GNU Awk 3.1.5
/usr/bin/awk -> /usr/bin/gawk
gcc (Debian 4.3.2-1.1) 4.3.2
GNU C Library stable release version 2.7
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.26-2-686 (Debian 2.6.26-21lenny4) (da...@debian.org)
(gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue
Mar 9 17:35:51 UTC 2010
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
Texinfo: makeinfo (GNU texinfo) 4.11
Compilation OK

-- 
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l...@omcgtjuba.phi/')
-- 
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