From 3f91a9cef2dfe59c88ea2f4bfe5c0e68d8c627a2 Mon Sep 17 00:00:00 2001 From: "Alexander E. Patrakov" Date: Thu, 24 Jun 2004 14:27:04 +0000 Subject: Various hotplug-related changes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3848 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/hotplug.xml | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) (limited to 'chapter06') diff --git a/chapter06/hotplug.xml b/chapter06/hotplug.xml index 31ddf022f..dccc2cf3f 100644 --- a/chapter06/hotplug.xml +++ b/chapter06/hotplug.xml @@ -11,10 +11,11 @@ -<para>The Hotplug package contains scripts that react upon various changes -in the kernel state, in particular, addition and removal of hardware. This -package also detects existing hardware during boot and inserts the relevant -modules into the running kernel. +<para>The Hotplug package contains scripts that react upon hotplug events +generated by the kernel. Such events correspond to every change in the +in the kernel state visible in the "sysfs" filesystem, e.g., the addition and +removal of hardware. This package also detects existing hardware during +boot and inserts the relevant modules into the running kernel. </para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -28,31 +29,34 @@ modules into the running kernel. <title>Installation of Hotplug -Apply the patch that avoids bogus dependencies of the -usb.rc script -upon which and -usbutils packages: +The usb.rc script provided by the +Hotplug package depends on the programs +usbutils and which being present. +However, these programs are not called for any useful purpose. +Apply the patch that removes those dependencies: patch -Np1 -i ../hotplug-&hotplug-version;-bogus_deps-1.patch -USB coldplugging is somewhat broken in Hotplug by default. Fix this with the -following patch: +USB coldplugging is somewhat broken in Hotplug +by default: the DEVICE environment variable is not passed to user-defined USB +hotplug handlers. Fix this with the following patch: patch -Np1 -i ../hotplug-&hotplug-version;-device-2.patch + - -And finally install the Hotplug package: +Now install the Hotplug package: make install @@ -61,6 +65,11 @@ the script including with LFS-Bootscripts: rm -rf /etc/init.d +Network device hotplugging is not supported by LFS bootscripts yet. For +that reason, remove the network hotplug agent: + +rm -f /etc/hotplug/net.agent + @@ -109,8 +118,8 @@ specific actions upon hardware already present during system startup. They are called by the hotplug initscript that comes from the lfs-bootscripts package. The *.rc -scripts try to find kernel modules corresponding to your hardware and insert -them into the running kernel. +scripts try to recover hotplug events that were lost during system boot +because, e.g., the root filesystem was not mounted by the kernel. @@ -179,7 +188,7 @@ call for each USB device, based on its vendor, id and other attributes. /etc/hotplug.d This directory contains programs (or symlinks to them) -that are interested in receiving all hotplug events. E.g., +that are interested in receiving hotplug events. E.g., udev puts its symlink here during installation. -- cgit v1.2.3-54-g00ecf