Am 15.02.2013 18:45, schrieb Stefan G. Weichinger:
> Am 15.02.2013 18:41, schrieb  (Nuno Silva):
> 
>> If you depend in the network device order in any way, and you used 
>> names like the ones the kernel uses, you *have* to do something
>> about the network device naming.
>>
>> For example, if you have eth0 and eth1 and you rely on eth0 being A 
>> and eth1 B, you can't  do that anymore with plain udev, even if the 
>> rules are still in place. eth0 may become B and eth1 A.
> 
> No order needed as there is only one adapter in there:
> 
> # lspci  | grep net
> 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 01)
> 
> # cat /etc/udev/rules.d/70-persistent-net.rules
> # PCI device 0x10ec:0x8168 (r8169)
> SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:21:85:62:4f:0b",
> KERNEL=="eth*", NAME="eth0"

successful reboot done already:

 # cat /proc/version
Linux version 3.6.11-gentoo
# zgrep -i devtm /proc/config.gz
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

# mount | grep tmpfs
udev on /dev type devtmpfs
(rw,nosuid,relatime,size=10240k,nr_inodes=493463,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs
(rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)

I should edit /etc/fstab, I assume:

# grep tmpfs /etc/fstab
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
shm     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

Same "mistake" as I mentioned a few days before ... the syntax seems to
have changed to:

tmpfs     /dev/shm        tmpfs         nodev,nosuid,noexec     0 0

Right?

---

So I might be ready to upgrade udev, correct?

*sigh*

;-)

Stefan




Reply via email to