source: chapter05/udev.xml@ 69993f4

6.0
Last change on this file since 69993f4 was 69993f4, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Second round of edits for final release

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4066 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-tools-udev" role="wrap">
7<title>Udev-&udev-version;</title>
8<?dbhtml filename="udev.html"?>
9
10<indexterm zone="ch-tools-udev">
11<primary sortas="a-Udev">Udev</primary>
12<secondary>tools</secondary></indexterm>
13
14<sect2 role="package"><title/>
15<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/udev.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
21</segmentedlist>
22
23
24<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/udev.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
25
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Udev</title>
30
31<para>The <command>udevstart</command> program hardcodes the path to
32the <command>udev</command> program in itself, which would cause
33issues since <command>udev</command> was installed in a non-standard
34location. Fix this by running the following:</para>
35
36<screen><userinput>sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c</userinput></screen>
37
38<para>Also, ensure that <command>udev</command> knows the correct location to look for its
39configuration files:</para>
40
41<screen><userinput>sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in</userinput></screen>
42
43<para>Now compile Udev:</para>
44
45<screen><userinput>make prefix=/tools etcdir=/tools/etc</userinput></screen>
46
47<para>This package does not come with a test suite.</para>
48
49<para>Install the package:</para>
50
51<screen><userinput>make DESTDIR=/tools udevdir=/dev install</userinput></screen>
52
53<para>Udev's configuration is far from ideal by default, so install
54LFS-specific configuration files here:</para>
55
56<screen><userinput>cp ../udev-config-2.permissions /tools/etc/udev/permissions.d/00-lfs.permissions
57cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules</userinput></screen>
58
59</sect2>
60
61<sect2 role="content"><title/>
62<para>Details on this package are located in <xref linkend="contents-udev"/>.</para>
63</sect2>
64
65</sect1>
66
Note: See TracBrowser for help on using the repository browser.