From d75c1237e7ab8e4a6ad713f922f1e451ed7902a9 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Wed, 15 Oct 2008 02:09:26 +0000 Subject: Updated udev instructions following upstream recommendations. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/udev.xml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) (limited to 'chapter06/udev.xml') diff --git a/chapter06/udev.xml b/chapter06/udev.xml index 4a1b2c1ca..a2c1a84ec 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -60,8 +60,9 @@ ln -sv /proc/kcore /lib/udev/devices/core Prepare the package for compilation: -./configure --prefix=/ --includedir=/usr/include \ - --datarootdir=/usr/share +./configure --prefix=/usr \ + --exec-prefix= \ + --sysconfdir=/etc Compile the package: @@ -73,35 +74,17 @@ ln -sv /proc/kcore /lib/udev/devices/core make install - Recreate the library .so files - currently in the /lib directory in - /usr/lib, then remove the - originals: - -ln -sv ../../lib/$(readlink /lib/libudev.so) \ - /usr/lib/libudev.so -ln -sv ../../lib/$(readlink /lib/libvolume_id.so) \ - /usr/lib/libvolume_id.so -rm -v /lib/lib{udev,volume_id}.so - - Move the .pc files currently - in the /lib/pkgconfig directory to - their proper place in /usr/lib: - -mv -v /lib/pkgconfig/lib{udev,volume_id}.pc /usr/lib/pkgconfig -rmdir -v /lib/pkgconfig - Udev has to be configured in order to work properly, as its default configuration does not cover all devices. First install two extra rules files from Udev to help support device-mapper and RAID setups: install -m644 -v rules/packages/64-*.rules \ - /etc/udev/rules.d/ + /lib/udev/rules.d/ Now install a file to create symlinks for certain hand-held devices: install -m644 -v rules/packages/40-pilot-links.rules \ - /etc/udev/rules.d/ + /lib/udev/rules.d/