[9dfc02f] | 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 | ]>
|
---|
[9652249] | 6 | <sect1 id="ch-tools-udev" role="wrap">
|
---|
[9dfc02f] | 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 |
|
---|
[9652249] | 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])"/>
|
---|
[9dfc02f] | 16 |
|
---|
[9652249] | 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>
|
---|
[9dfc02f] | 22 |
|
---|
[6e41459] | 23 |
|
---|
[9652249] | 24 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/udev.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
|
---|
[9dfc02f] | 25 |
|
---|
[9652249] | 26 | </sect2>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="installation">
|
---|
[9dfc02f] | 29 | <title>Installation of Udev</title>
|
---|
| 30 |
|
---|
[6e41459] | 31 | <para>The <command>udevstart</command> program hardcodes the path to
|
---|
| 32 | the <command>udev</command> program in itself, which would cause
|
---|
| 33 | issues since <command>udev</command> was installed in a non-standard
|
---|
| 34 | location. Fix this by running the following:</para>
|
---|
[9dfc02f] | 35 |
|
---|
[2ec4b60] | 36 | <screen><userinput>sed -i 's@/sbin/udev@/tools/sbin/udev@g' udevstart.c</userinput></screen>
|
---|
[9dfc02f] | 37 |
|
---|
[69993f4] | 38 | <para>Also, ensure that <command>udev</command> knows the correct location to look for its
|
---|
[9dfc02f] | 39 | configuration files:</para>
|
---|
| 40 |
|
---|
[2ec4b60] | 41 | <screen><userinput>sed -i 's@/etc@/tools/etc@g' etc/udev/udev.conf.in</userinput></screen>
|
---|
[9dfc02f] | 42 |
|
---|
| 43 | <para>Now compile Udev:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput>make prefix=/tools etcdir=/tools/etc</userinput></screen>
|
---|
| 46 |
|
---|
[0cb7f8b] | 47 | <para>This package does not come with a test suite.</para>
|
---|
| 48 |
|
---|
[6e41459] | 49 | <para>Install the package:</para>
|
---|
[9dfc02f] | 50 |
|
---|
[18da154] | 51 | <screen><userinput>make DESTDIR=/tools udevdir=/dev install</userinput></screen>
|
---|
[9dfc02f] | 52 |
|
---|
[6e41459] | 53 | <para>Udev's configuration is far from ideal by default, so install
|
---|
[69993f4] | 54 | LFS-specific configuration files here:</para>
|
---|
[9dfc02f] | 55 |
|
---|
[c863747] | 56 | <screen><userinput>cp ../udev-config-2.permissions \
|
---|
| 57 | /tools/etc/udev/permissions.d/00-lfs.permissions
|
---|
[18da154] | 58 | cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules</userinput></screen>
|
---|
[9dfc02f] | 59 |
|
---|
| 60 | </sect2>
|
---|
| 61 |
|
---|
[9652249] | 62 | <sect2 role="content"><title/>
|
---|
[c17fc85] | 63 | <para>Details on this package are located in <xref
|
---|
| 64 | linkend="contents-udev" role="."/></para>
|
---|
[0868461] | 65 | </sect2>
|
---|
[9dfc02f] | 66 |
|
---|
| 67 | </sect1>
|
---|
[6e41459] | 68 |
|
---|