Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] devfs is dead, let's move on
Date: Thu, 07 Jul 2005 17:44:19
Message-Id: 20050707173951.GA10453@lion.gg3.net
In Reply to: [gentoo-dev] devfs is dead, let's move on by Greg KH
1 maillog: 06/07/2005-15:46:51(-0700): Greg KH types
2 > Ok, now that devfs is removed from the 2.6 kernel tree[1], I think it's
3 > time to start to revisit some of the /dev naming rules that we currently
4 > are living with[2].
5 >
6 > To start with, the 061 version of udev offers a big memory savings if
7 > you use the "default" kernel name of a device[3]. If you do that, it does
8 > not create a file in its database in /dev/.udevdb/
9
10 Ah, that will break /etc/init.d/halt.sh
11
12 Particularly the stuff around here:
13
14 ebegin "Saving device nodes"
15 ...
16 cd /dev
17 # Find all devices
18 find . -xdev -type b -or -type c -or -type l | cut -d/ -f2- > \
19 "${devices_real}"
20 # Figure out what udev created
21 eval $(grep '^[[:space:]]*udev_db=' /etc/udev/udev.conf)
22 if [[ -d ${udev_db} ]]; then
23 # New udev_db is clear text ...
24 udevinfo=$(cat "${udev_db}"/*)
25 else
26 # Old one is not ...
27 udevinfo=$(udevinfo -d)
28 fi
29 # This basically strips 'S:' and 'N:' from the db output, and then
30 # print all the nodes/symlinks udev created ...
31 ...
32
33 The script will be unable to figure out what device is being handled by
34 udev, and what is not.
35
36 --
37 | Georgi Georgiev | I read the newspaper avidly. It is my one |
38 | chutz@×××.net | form of continuous fiction. -- Aneurin |
39 | +81(90)2877-8845 | Bevan |
40 --
41 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] devfs is dead, let's move on Greg KH <gregkh@g.o>