LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Missing /etc/udev/rules.d/70-persistent-net.rules - Chapter 7.2.1. (http://www.linuxquestions.org/questions/linux-from-scratch-13/missing-etc-udev-rules-d-70-persistent-net-rules-chapter-7-2-1-a-946867/)

Mordillo98 05-25-2012 01:05 PM

Missing /etc/udev/rules.d/70-persistent-net.rules - Chapter 7.2.1.
 
Greetings,

Seems I am stuck at chapter 7.2.1. Here are the logs:

******************************
I check here I can ping google.ca
******************************

root:~# ping www.google.ca
PING www-cctld.l.google.com (74.125.226.95): 56 data bytes
64 bytes from 74.125.226.95: icmp_seq=0 ttl=128 time=3.029 ms
64 bytes from 74.125.226.95: icmp_seq=1 ttl=128 time=25.284 ms
64 bytes from 74.125.226.95: icmp_seq=2 ttl=128 time=27.924 ms
64 bytes from 74.125.226.95: icmp_seq=3 ttl=128 time=35.604 ms
64 bytes from 74.125.226.95: icmp_seq=4 ttl=128 time=47.645 ms
64 bytes from 74.125.226.95: icmp_seq=5 ttl=128 time=76.196 ms
64 bytes from 74.125.226.95: icmp_seq=6 ttl=128 time=138.804 ms
^C--- www-cctld.l.google.com ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.029/50.641/138.804/41.553 ms

*****************************************************************************************
I copy/paste the command from chapter 7.2.1.

As you will see, it will read from /lib/udev/rules.d/ as supposed to /etc/udev/rules.d/
*****************************************************************************************


root:~# for NIC in /sys/class/net/* ; do
> INTERFACE=${NIC##*/} udevadm test --action=add $NIC
> done
run_command: calling: test
adm_test: version 181
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
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '/etc/udev/rules.d/55-lfs.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-accelerometer.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-probe_mtd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file
udev_rules_new: rules use 12888 bytes tokens (1074 * 12 bytes), 7639 bytes buffer
udev_rules_new: temporary index used 8100 bytes (405 * 20 bytes)
udev_device_new_from_syspath: device 0x80751e0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0'
udev_device_new_from_syspath: device 0x80753d8 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0'
udev_device_read_db: device 0x80753d8 filled with db file data
udev_device_new_from_syspath: device 0x80758d0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0'
udev_device_new_from_syspath: device 0x8075c00 has devpath '/devices/pci0000:00/0000:00:11.0'
udev_device_new_from_syspath: device 0x8075e80 has devpath '/devices/pci0000:00'
udev_rules_apply_to_event: IMPORT builtin 'pci-db' /lib/udev/rules.d/75-net-description.rules:11
Failed to open database file 'no': No such file or directory
udev_device_new_from_syspath: device 0x8076360 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:01.0'
udev_device_update_db: created db file '/run/udev/data/n2' for '/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0'
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:02:01.0/net/eth0
ID_BUS=pci
ID_MODEL_ID=/sys/devices/pci0000:00/0000:00:11.0/0000:02:01.0
ID_VENDOR_ID=0x1022
IFINDEX=2
INTERFACE=eth0
MATCHADDR=00:0c:29:43:d3:20
MATCHIFTYPE=1
SUBSYSTEM=net
UDEV_LOG=6
USEC_INITIALIZED=72987878209
builtin_kmod_exit: unload module index
run_command: calling: test
adm_test: version 181
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
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '/etc/udev/rules.d/55-lfs.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-accelerometer.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-probe_mtd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file
udev_rules_new: rules use 12888 bytes tokens (1074 * 12 bytes), 7639 bytes buffer
udev_rules_new: temporary index used 8100 bytes (405 * 20 bytes)
udev_device_new_from_syspath: device 0x80751e0 has devpath '/devices/virtual/net/lo'
udev_device_new_from_syspath: device 0x8075358 has devpath '/devices/virtual/net/lo'
udev_device_read_db: device 0x8075358 filled with db file data
udev_device_update_db: created empty file '/run/udev/data/n1' for '/devices/virtual/net/lo'
ACTION=add
DEVPATH=/devices/virtual/net/lo
IFINDEX=1
INTERFACE=lo
SUBSYSTEM=net
UDEV_LOG=6
USEC_INITIALIZED=77641685320
builtin_kmod_exit: unload module index

********************************************************
There is no /etc/udev/rules.d/70-persistent-net.rules
********************************************************

root:~# ls /etc/udev/rules.d
55-lfs.rules

********************************************************
There is no /lib/udev/rules.d/70-persistent-net.rules
********************************************************

root:~# ls /lib/udev/rules.d
42-qemu-usb.rules 60-persistent-serial.rules 75-cd-aliases-generator.rules 78-sound-card.rules
50-udev-default.rules 60-persistent-storage-tape.rules 75-net-description.rules 80-drivers.rules
60-cdrom_id.rules 60-persistent-storage.rules 75-persistent-net-generator.rules 95-udev-late.rules
60-persistent-alsa.rules 60-persistent-v4l.rules 75-probe_mtd.rules
60-persistent-input.rules 61-accelerometer.rules 75-tty-description.rules

******************************
eth0 is present
******************************

root:~# ls /sys/class/net
eth0 lo



How should I go from here? I'm so close to finish it. :) Thx ...

druuna 05-25-2012 01:22 PM

Quote:

Originally Posted by Mordillo98
builtin_kmod_init: load module index
index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
add_matching_files: unable to open '/run/udev/rules.d': No such file or directory

Is this done from inside the chrooted environment?

If not: Restart from here http://www.linuxfromscratch.org/lfs/...sedchroot.html

Mordillo98 05-25-2012 01:58 PM

Yes I did. But to be in the safe side, I rebooted the machine, chrooted again and tried again.

Same problem.

druuna 05-25-2012 02:33 PM

Did you do the mount parts from chapter 6.2 after the reboot and before chrooting (as mentioned in chapter 6.64)?

I still believe you're not in the correct environment. The following isn't yet possible at this point of the build (no network):
Quote:

root:~# ping www.google.ca
PING www-cctld.l.google.com (74.125.226.95): 56 data bytes
64 bytes from 74.125.226.95: icmp_seq=0 ttl=128 time=3.029 ms
and I do believe this also points to your host:
Quote:

index_mm_open: open(/lib/modules/2.6.32-gentoo-r41/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory

Mordillo98 05-25-2012 02:56 PM

Humm. My guess is that at one point I haven't chrooted properly on Chapter6 and created some bad links. I do everything from putty so that I can copy and paste the documentation, so sometimes I log off and log in from putty and need to chroot again.

Let me do Chapter 6 again and get back to you.

Tkx ...

Mordillo98 06-11-2012 08:37 PM

I redid the entire thing using Debian Live CD, and I got the exact same problem.

That means I am doing the same wrong thing.

However, if I boot with Debian Live CD, do a chroot as per Chapter 6.64 and recompile UDev, the problem gets fixed.

Making as resolved.


All times are GMT -5. The time now is 03:18 PM.