From 61e63d302cd8bdb73dbb2d6567ca6e66184ae251 Mon Sep 17 00:00:00 2001 From: Bryan Kadzban Date: Fri, 23 May 2008 01:45:45 +0000 Subject: Upgrade Udev to 122, udev-config to 20080522, and lfs-bootscripts to 20080522. Replace "write_net_rules all_interfaces" with a "udevadm test" loop. Fix several typos. Remove the usb_id segfault patch, as it's included in Udev now. Add /lib/udev/devices/kmsg, as udevd uses /dev/kmsg to log a message at startup. Replace udevtrigger/udevinfo with "udevadm trigger" and "udevadm info" in the text. Should fix #2057, #2079, #2170, and #2186. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8545 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/udev.xml | 122 ++++++++++++++++++----------------------------------- 1 file changed, 41 insertions(+), 81 deletions(-) (limited to 'chapter06') diff --git a/chapter06/udev.xml b/chapter06/udev.xml index 8d7e820ae..95b7c3184 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -47,21 +47,17 @@ tar -xvf ../&udev-config;.tar.bz2 Create some devices and directories that Udev cannot handle due to - them being required very early in the boot process: + them being required very early in the boot process, or by Udev itself: install -dv /lib/{firmware,udev/devices/{pts,shm}} mknod -m0666 /lib/udev/devices/null c 1 3 +mknod -m0600 /lib/udev/devices/kmsg c 1 11 ln -sv /proc/self/fd /lib/udev/devices/fd ln -sv /proc/self/fd/0 /lib/udev/devices/stdin ln -sv /proc/self/fd/1 /lib/udev/devices/stdout ln -sv /proc/self/fd/2 /lib/udev/devices/stderr ln -sv /proc/kcore /lib/udev/devices/core - usb_id is known to segfault under certain kernel - configurations. Fix the issue by applying the following patch: - -patch -Np1 -i ../&udev-usbid-patch; - Compile the package: make EXTRAS="`echo extras/*/`" @@ -104,13 +100,9 @@ ln -sv /proc/kcore /lib/udev/devices/core - Udev has to be configured in order to work properly, as it only - installs a few configuration files by default. First install the - commonly-used rules files provided by Udev: - -cp -v etc/udev/rules.d/[0-9]* /etc/udev/rules.d/ - - Now install the LFS-specific rules files: + Udev has to be configured in order to work properly, as its default + configuration does not cover all devices. Install the (LFS-specific) + custom rules files: cd &udev-config; make install @@ -129,6 +121,7 @@ make install rules: cd .. +install -dv /usr/share/doc/udev-&udev-version; install -m644 -v docs/writing_udev_rules/index.html \ /usr/share/doc/udev-&udev-version;/index.html @@ -143,10 +136,9 @@ install -m644 -v docs/writing_udev_rules/index.html \ Installed directory - ata_id, cdrom_id, create_floppy_devices, edd_id, firmware.sh, - path_id, scsi_id, udevcontrol, udevd, udevinfo, udevmonitor, udevsettle, - udevtest, udevtrigger, usb_id, vol_id, write_cd_rules, and - write_net_rules + ata_id, cdrom_id, collect, create_floppy_devices, edd_id, + firmware.sh, fstab_import, path_id, scsi_id, udevadm, udevd, + usb_id, vol_id, write_cd_rules, and write_net_rules libvolume_id /etc/udev @@ -179,6 +171,18 @@ install -m644 -v docs/writing_udev_rules/index.html \ + + collect + + Given an ID for the current uevent and a list of + IDs (for all target uevents), registers the current ID + and indicates whether all target IDs have been registered + + collect + + + + create_floppy_devices @@ -209,6 +213,18 @@ install -m644 -v docs/writing_udev_rules/index.html \ + + fstab_import + + Finds an entry in /etc/fstab that + matches the current device, and provides its information to + Udev + + fstab_import + + + + path_id @@ -232,13 +248,15 @@ install -m644 -v docs/writing_udev_rules/index.html \ - - udevcontrol + + udevadm - Configures a number of options for the running - udevd daemon, such as the log level. - - udevcontrol + Generic udev administration tool: controls the udevd daemon, + provides info from the Udev database, monitors uevents, waits for + uevents to finish, tests Udev configuration, and triggers uevents + for a given device + + udevadm @@ -255,64 +273,6 @@ install -m644 -v docs/writing_udev_rules/index.html \ - - udevinfo - - Allows users to query the Udev database for - information on any device currently present on the system; it also - provides a way to query any device in the sysfs tree to help create udev - rules - - udevinfo - - - - - - udevmonitor - - Prints the event received from the kernel and the environment - which Udev sends out after rule processing - - udevmonitor - - - - - - udevsettle - - Watches the Udev event queue and exits if all current uevents - have been handled - - udevsettle - - - - - - udevtest - - Simulates a uevent for the given device, and prints out the - name of the node the real udevd would have created, - or the name of the renamed network interface - - udevtest - - - - - - udevtrigger - - Triggers kernel device uevents to be replayed - - udevtrigger - - - - usb_id -- cgit v1.2.3-54-g00ecf