Bruce Dubbs wrote: > The line 'INTERFACE=eth0 udevadm test --action=add /sys/class/net/eth0' > does not run write_net_rules. I get the following output: > > run_command: calling: test > adm_test: version 182 > This program is for debugging only, it does not run any program, > specified by a RUN key. It may show incorrect results, because > some values may be different, or not available at a simulation run. > > builtin_kmod_init: load module index > add_matching_files: unable to open '/run/udev/rules.d': No such file or > directory > ... > parse_file: reading > '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file > ... > udev_rules_new: rules use 13680 bytes tokens (1140 * 12 bytes), 7575 > bytes buffer > udev_rules_new: temporary index used 8300 bytes (415 * 20 bytes) > udev_device_new_from_syspath: device 0x8075520 has devpath '/class/net/eth0' > udev_device_new_from_syspath: device 0x8075698 has devpath '/class/net/eth0' > udev_device_read_db: device 0x8075698 filled with db file data > udev_device_new_from_syspath: device 0x8075b90 has devpath '/class/net' > udev_device_update_db: created db file '/run/udev/data/n2' for > '/class/net/eth0' > > ACTION=add > COMMENT=net device () > DEVPATH=/class/net/eth0 > IFINDEX=2 > INTERFACE=eth0 > MATCHADDR=00:11:11:79:4d:17 > MATCHDEVID=0x0 > MATCHIFTYPE=1 > PHYSDEVBUS=pci > PHYSDEVDRIVER=tg3 > PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:02:00.0 > SUBSYSTEM=net > UDEV_LOG=6 > USEC_INITIALIZED=206405826662 > builtin_kmod_exit: unload module index > > The command also creates two directories (and 4 small data files) in > /run that will be overlaid with a tmpfs at boot time. > > I think the 75-persistent-net-generator.rules will do the right thing on > boot, but I haven't tested and I can't figure out how to force it before > boot in chapter 7. > > Comments here are welcome.
Based on the comment, it seems that there's no vendor, device, or driver attribute in sysfs. Maybe too old of a kernel or something? What does "udevadm info --attribute-walk -p /sys/class/net/eth0" say?
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page