aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
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>