aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2008-10-15 02:09:26 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2008-10-15 02:09:26 +0000
commitd75c1237e7ab8e4a6ad713f922f1e451ed7902a9 (patch)
tree5fd08f2c9c733505a7007908dbbd556ebeab586c /chapter06
parentc49647b10ac25ec57bb0f956f92cf3f36995aa47 (diff)
Updated udev instructions following upstream recommendations.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8662 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r--chapter06/udev.xml27
1 files changed, 5 insertions, 22 deletions
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</userinput></screen>
<para>Prepare the package for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/ --includedir=/usr/include \
- --datarootdir=/usr/share</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr \
+ --exec-prefix= \
+ --sysconfdir=/etc</userinput></screen>
<para>Compile the package:</para>
@@ -73,35 +74,17 @@ ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen>
<screen><userinput remap="install">make install</userinput></screen>
- <para>Recreate the library <filename class="extension">.so</filename> files
- currently in the <filename class="directory">/lib</filename> directory in
- <filename class="directory">/usr/lib</filename>, then remove the
- originals:</para>
-
-<screen><userinput remap="install">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</userinput></screen>
-
- <para>Move the <filename class="extension">.pc</filename> files currently
- in the <filename class="directory">/lib/pkgconfig</filename> directory to
- their proper place in <filename class="directory">/usr/lib</filename>:</para>
-
-<screen><userinput remap="install">mv -v /lib/pkgconfig/lib{udev,volume_id}.pc /usr/lib/pkgconfig
-rmdir -v /lib/pkgconfig</userinput></screen>
-
<para>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:</para>
<screen><userinput remap="install">install -m644 -v rules/packages/64-*.rules \
- /etc/udev/rules.d/</userinput></screen>
+ /lib/udev/rules.d/</userinput></screen>
<para>Now install a file to create symlinks for certain hand-held devices:</para>
<screen><userinput remap="install">install -m644 -v rules/packages/40-pilot-links.rules \
- /etc/udev/rules.d/</userinput></screen>
+ /lib/udev/rules.d/</userinput></screen>
<!-- There are more files available in the packages/ directory, if we want
to consider using them. Most are probably irrelevant to LFS though.