[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-util-linux" role="wrap">
|
---|
| 9 | <?dbhtml filename="util-linux.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Util-linux-&util-linux-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-boot-util-linux">
|
---|
| 14 | <primary sortas="a-Util-linux">Util-linux</primary>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
[c4b671e] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/common/util-linux.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[bf8c11f] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Util-linux</title>
|
---|
| 24 |
|
---|
| 25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 26 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 27 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
[bf8c11f] | 28 |
|
---|
| 29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 30 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 31 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
[bf8c11f] | 32 |
|
---|
| 33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 34 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 35 | xpointer="xpointer(//*[@os='p3'])"/>
|
---|
[bf8c11f] | 36 |
|
---|
| 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 38 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 39 | xpointer="xpointer(//*[@os='p4'])"/>
|
---|
[bf8c11f] | 40 |
|
---|
| 41 | <para os="ba">Util-linux does not use the freshly installed headers and
|
---|
| 42 | libraries from the <filename class="directory">/tools</filename>
|
---|
| 43 | directory by default. This is fixed by altering the configure script:</para>
|
---|
| 44 |
|
---|
| 45 | <screen os="bb"><userinput>cp configure{,.orig}
|
---|
| 46 | sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para os="bc">Util-linux installs uses <option>-o root</option>, the following
|
---|
| 49 | <command>sed</command> removes that since we don't have users setup
|
---|
| 50 | yet:</para>
|
---|
| 51 |
|
---|
| 52 | <screen os="bd"><userinput>cp MCONFIG{,.orig}
|
---|
| 53 | sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 56 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 57 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
[bf8c11f] | 58 |
|
---|
[40c1b5b] | 59 | <screen os="be"><userinput>./configure</userinput></screen>
|
---|
[bf8c11f] | 60 |
|
---|
| 61 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 62 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 63 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
[bf8c11f] | 64 |
|
---|
[b66e30f] | 65 | <screen os="bf"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \
|
---|
| 66 | HAVE_SHADOW=no CPUOPT="" ARCH="" \
|
---|
| 67 | CPU=""</userinput></screen>
|
---|
[bf8c11f] | 68 |
|
---|
[40c1b5b] | 69 | <variablelist os="bg">
|
---|
[bf8c11f] | 70 | <title>The meaning of the make parameters:</title>
|
---|
| 71 |
|
---|
| 72 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 73 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 74 | xpointer="xpointer(//*[@os='e1'])"/>
|
---|
[bf8c11f] | 75 |
|
---|
| 76 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 77 | href="../../final-system/common/util-linux.xml"
|
---|
[e6423a01] | 78 | xpointer="xpointer(//*[@os='e2'])"/>
|
---|
[bf8c11f] | 79 |
|
---|
| 80 | <varlistentry>
|
---|
| 81 | <term><parameter>HAVE_SHADOW=no</parameter></term>
|
---|
| 82 | <listitem>
|
---|
[b66e30f] | 83 | <para>This disables linking to shadow .</para>
|
---|
[bf8c11f] | 84 | </listitem>
|
---|
| 85 | </varlistentry>
|
---|
| 86 |
|
---|
| 87 | <varlistentry>
|
---|
| 88 | <term><parameter>CPUOPT=""</parameter></term>
|
---|
| 89 | <listitem>
|
---|
[b66e30f] | 90 | <para>This disables any compiler optimizations by CPU type.</para>
|
---|
[bf8c11f] | 91 | </listitem>
|
---|
| 92 | </varlistentry>
|
---|
| 93 |
|
---|
| 94 | <varlistentry>
|
---|
| 95 | <term><parameter>ARCH=""</parameter></term>
|
---|
| 96 | <listitem>
|
---|
[b66e30f] | 97 | <para>This disables the detection of the architecture.</para>
|
---|
[bf8c11f] | 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
| 100 |
|
---|
| 101 | <varlistentry>
|
---|
| 102 | <term><parameter>CPU=""</parameter></term>
|
---|
| 103 | <listitem>
|
---|
[b66e30f] | 104 | <para>This disables the detection of the CPU.</para>
|
---|
[bf8c11f] | 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
| 108 | </variablelist>
|
---|
| 109 |
|
---|
[40c1b5b] | 110 | <para os="bh">Install the package:</para>
|
---|
[bf8c11f] | 111 |
|
---|
[b66e30f] | 112 | <screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \
|
---|
| 113 | USE_TTY_GROUP=no CPUOPT="" ARCH="" \
|
---|
| 114 | CPU="" DESTDIR=${LFS} install</userinput></screen>
|
---|
[bf8c11f] | 115 |
|
---|
[40c1b5b] | 116 | <para os="bj">Now we will put a copy of mount in <filename
|
---|
[bf8c11f] | 117 | class="directory">/tools/bin</filename>:</para>
|
---|
| 118 |
|
---|
[40c1b5b] | 119 | <screen os="bk"><userinput>cp ${LFS}/bin/mount /tools/bin</userinput></screen>
|
---|
[bf8c11f] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="content">
|
---|
| 124 | <title/>
|
---|
| 125 |
|
---|
| 126 | <para>Details on this package are located in <xref
|
---|
| 127 | linkend="contents-util-linux" role="."/></para>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | </sect1>
|
---|