1 |
On Sun, Feb 24, 2013 at 10:44:19AM +0200, Alan McKinnon wrote: |
2 |
> On 23/02/2013 19:18, Alan Mackenzie wrote: |
3 |
> > Hi, Gentoo! |
4 |
|
5 |
> > Just built the new kernel 3.7.9 last night, and it's one of these |
6 |
> > "nothing works" situations. |
7 |
|
8 |
Sorry, I was exaggerating here. I can work normally as long as I don't |
9 |
try to use a peripheral, such as printer, audio, or scanner. My network |
10 |
connection is working OK. |
11 |
|
12 |
> > It seems the problems are with the device files, whose ownership is set |
13 |
> > to "root root" (rather than, e.g., "root audio") and whose permissions |
14 |
> > are set to crw------- (rather than the expected crw-rw----). |
15 |
|
16 |
> > I'm still running udev-171-r10. This might well make a difference. |
17 |
|
18 |
> > Needless to say, everything works under kernel 3.6.11. It would be nice |
19 |
> > if there were some mistake in my kernel config. |
20 |
|
21 |
> > Could somebody help me get this fixed, please. |
22 |
|
23 |
|
24 |
> udev sets ownership and permissions on devices nodes, not the kernel. |
25 |
|
26 |
> I'd guess your udev setup is incompatible with 3.7.* so let's start with |
27 |
> the usual: |
28 |
|
29 |
> What is your kernel config for the various TMPFS settings in the kernel? |
30 |
> (grep TMPFS in .config) |
31 |
|
32 |
CONFIG_DEVTMPFS=y |
33 |
CONFIG_DEVTMPFS_MOUNT=y |
34 |
CONFIG_TMPFS=y |
35 |
CONFIG_TMPFS_POSIX_ACL=y |
36 |
CONFIG_TMPFS_XATTR=y |
37 |
|
38 |
> What mount options apply to /dev? |
39 |
|
40 |
On my (working) 3.6.11: |
41 |
devtmpfs on /dev type devtmpfs (rw,relatime,size=1988792k,nr_inodes=497198,mode=755) |
42 |
|
43 |
On my (non-working) 3.7.9: |
44 |
devtmpfs on /dev type devtmpfs (rw,relatime,size=1988680k,nr_inodes=497170,mode=755) |
45 |
|
46 |
> Contents of /etc/fstab? |
47 |
|
48 |
(Leading comments have been removed.) |
49 |
|
50 |
#/dev/BOOT /boot ext2 noauto,noatime 1 2 |
51 |
/dev/md6 / ext3 noatime 0 1 |
52 |
/dev/sda2 none swap sw 0 0 |
53 |
/dev/sdb2 none swap sw 0 0 |
54 |
|
55 |
#/dev/mapper/vg-usr /usr ext3 noatime 1 2 |
56 |
/dev/mapper/vg-usrportage /usr/portage ext2 noatime 1 2 |
57 |
/dev/mapper/vg-usrportagedistfiles /usr/portage/distfiles ext2 noatime 1 2 |
58 |
/dev/mapper/vg-usrsrc /usr/src ext3 noatime 1 2 |
59 |
|
60 |
/dev/mapper/vg-home /home ext3 noatime 1 2 |
61 |
/dev/mapper/vg-opt /opt ext3 noatime 1 2 |
62 |
|
63 |
/dev/mapper/vg-var /var ext3 noatime 1 2 |
64 |
/dev/mapper/vg-varspoolmail /var/spool/mail ext3 noatime 1 2 |
65 |
/dev/mapper/vg-varspoolnews /var/spool/news reiserfs noatime 1 2 |
66 |
/dev/mapper/vg-vardbpkg /var/db/pkg ext3 noatime 1 2 |
67 |
|
68 |
/dev/mapper/vg-iso /iso ext2 noatime 1 2 |
69 |
/dev/mapper/vg-old /old ext2 noatime 1 2 |
70 |
/dev/mapper/vg-vg--backup /backup ext2 noatime 1 2 |
71 |
|
72 |
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0 |
73 |
/dev/fd0 /mnt/floppy auto noauto 0 0 |
74 |
|
75 |
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for |
76 |
# POSIX shared memory (shm_open, shm_unlink). |
77 |
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will |
78 |
# use almost no memory if not populated with files) |
79 |
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
80 |
|
81 |
|
82 |
> USE flags that apply to udev? |
83 |
|
84 |
[ebuild R ] sys-fs/udev-171-r10 |
85 |
USE="gudev hwdb introspection keymap rule_generator |
86 |
-action_modeswitch -build -debug -edd (-extras) -floppy (-selinux) {-test}" |
87 |
|
88 |
> -- |
89 |
> Alan McKinnon |
90 |
> alan.mckinnon@×××××.com |
91 |
|
92 |
-- |
93 |
Alan Mackenzie (Nuremberg, Germany). |