aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorJeremy Utley <jeremy@linuxfromscratch.org>2004-09-22 04:50:54 +0000
committerJeremy Utley <jeremy@linuxfromscratch.org>2004-09-22 04:50:54 +0000
commitbd7538b84054408fe146f79b8077f574a106d41a (patch)
tree143339e09175e3a29e2b3ec0401bdd5e41f45757 /chapter05
parent091d533ffd247d1eb420c6ee3a09589afcc2c490 (diff)
Upgraded util-linux, udev, and hotplug to latest versions
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4185 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/udev.xml16
1 files changed, 4 insertions, 12 deletions
diff --git a/chapter05/udev.xml b/chapter05/udev.xml
index c79001a59..4f6ef8dcf 100644
--- a/chapter05/udev.xml
+++ b/chapter05/udev.xml
@@ -29,25 +29,17 @@
<sect2 role="installation">
<title>Installation of Udev</title>
-<para>The <command>udevstart</command> program hardcodes the path
-to the <command>udev</command> program in itself, which is bad since we
-install <command>udev</command> in a non-standard location. Fix this by
-running the following:</para>
+<para>Patch Udev to allow for udev.conf to be found in $PREFIX/etc:</para>
-<screen><userinput>sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c</userinput></screen>
-
-<para>Also assure that <command>udev</command> knows the correct location to look for its
-configuration files:</para>
-
-<screen><userinput>sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in</userinput></screen>
+<screen><userinput>patch -Np1 -i ../udev-&udev-version;-etcdir-2.patch</userinput></screen>
<para>Now compile Udev:</para>
-<screen><userinput>make prefix=/tools etcdir=/tools/etc</userinput></screen>
+<screen><userinput>make prefix=/tools udevdir=/dev</userinput></screen>
<para>Install it:</para>
-<screen><userinput>make DESTDIR=/tools udevdir=/dev install</userinput></screen>
+<screen><userinput>make prefix=/tools install</userinput></screen>
<para>Udev's configuration is far from ideal by default, so we install our own
configuration files here:</para>