Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: udev-197: what to do -- S0LVED
Date: Fri, 15 Feb 2013 18:23:26
Message-Id: 511E7D08.8090109@xunil.at
In Reply to: Re: [gentoo-user] Re: udev-197: what to do -- S0LVED by "Stefan G. Weichinger"
1 Am 15.02.2013 18:45, schrieb Stefan G. Weichinger:
2 > Am 15.02.2013 18:41, schrieb (Nuno Silva):
3 >
4 >> If you depend in the network device order in any way, and you used
5 >> names like the ones the kernel uses, you *have* to do something
6 >> about the network device naming.
7 >>
8 >> For example, if you have eth0 and eth1 and you rely on eth0 being A
9 >> and eth1 B, you can't do that anymore with plain udev, even if the
10 >> rules are still in place. eth0 may become B and eth1 A.
11 >
12 > No order needed as there is only one adapter in there:
13 >
14 > # lspci | grep net
15 > 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
16 > RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 01)
17 >
18 > # cat /etc/udev/rules.d/70-persistent-net.rules
19 > # PCI device 0x10ec:0x8168 (r8169)
20 > SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:21:85:62:4f:0b",
21 > KERNEL=="eth*", NAME="eth0"
22
23 successful reboot done already:
24
25 # cat /proc/version
26 Linux version 3.6.11-gentoo
27 # zgrep -i devtm /proc/config.gz
28 CONFIG_DEVTMPFS=y
29 CONFIG_DEVTMPFS_MOUNT=y
30
31 # mount | grep tmpfs
32 udev on /dev type devtmpfs
33 (rw,nosuid,relatime,size=10240k,nr_inodes=493463,mode=755)
34 tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
35 shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
36 cgroup_root on /sys/fs/cgroup type tmpfs
37 (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
38
39 I should edit /etc/fstab, I assume:
40
41 # grep tmpfs /etc/fstab
42 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
43 # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
44 shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
45
46 Same "mistake" as I mentioned a few days before ... the syntax seems to
47 have changed to:
48
49 tmpfs /dev/shm tmpfs nodev,nosuid,noexec 0 0
50
51 Right?
52
53 ---
54
55 So I might be ready to upgrade udev, correct?
56
57 *sigh*
58
59 ;-)
60
61 Stefan

Replies

Subject Author
Re: [gentoo-user] Re: udev-197: what to do -- S0LVED Alex Schuster <wonko@×××××××××.org>