aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/udev.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/udev.xml')
-rw-r--r--chapter05/udev.xml17
1 files changed, 6 insertions, 11 deletions
diff --git a/chapter05/udev.xml b/chapter05/udev.xml
index c532cc8e2..1d24b4a45 100644
--- a/chapter05/udev.xml
+++ b/chapter05/udev.xml
@@ -31,13 +31,6 @@
<sect2 role="installation">
<title>Installation of Udev</title>
-<para>By default, the permissions udev assigns to nodes are all uniform,
-being owned by user root, group root, and only accessible to root. As you
-can easily imagine, this isn't ideal. Give it a much better configuration
-by applying the following patch:</para>
-
-<screen><userinput>patch -Np1 -i ../udev-&udev-version;-config-1.patch</userinput></screen>
-
<para>The udevstart program hardcodes the path to the udev program in itself,
which is bad since we install udev in a non-standard location. Fix this by
running the following:</para>
@@ -53,13 +46,15 @@ configuration files:</para>
<screen><userinput>make prefix=/tools etcdir=/tools/etc</userinput></screen>
-<para>Generate Udev's main configuration file:</para>
+<para>Install it:</para>
-<screen><userinput>make udevdir=/dev etc/udev/udev.conf</userinput></screen>
+<screen><userinput>make DESTDIR=/tools udevdir=/dev install</userinput></screen>
-<para>Finally, install it:</para>
+<para>Udev's configuration is far from ideal by default, so we install our own
+configuration files here:</para>
-<screen><userinput>make DESTDIR=/tools install</userinput></screen>
+<screen><userinput>cp ../udev-config-1.permissions /tools/etc/udev/permissions.d/00-lfs.permissions
+cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules</userinput></screen>
</sect2>