| [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 |  | 
|---|
| [5616325] | 41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 42 | href="../../final-system/common/util-linux.xml" | 
|---|
|  | 43 | xpointer="xpointer(//*[@os='p5'])"/> | 
|---|
|  | 44 |  | 
|---|
|  | 45 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 46 | href="../../final-system/common/util-linux.xml" | 
|---|
|  | 47 | xpointer="xpointer(//*[@os='p6'])"/> | 
|---|
|  | 48 |  | 
|---|
| [bf8c11f] | 49 | <para os="ba">Util-linux does not use the freshly installed headers and | 
|---|
|  | 50 | libraries from the <filename class="directory">/tools</filename> | 
|---|
| [f9b3685d] | 51 | directory by default. This is fixed by altering the | 
|---|
|  | 52 | <command>configure</command> script:</para> | 
|---|
| [bf8c11f] | 53 |  | 
|---|
| [287d7b9] | 54 | <screen os="bb"><userinput>cp -v configure{,.orig} | 
|---|
| [8cb087f] | 55 | sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen> | 
|---|
| [bf8c11f] | 56 |  | 
|---|
| [01a7a8f] | 57 | <para os="bc">The Util-linux installation uses <option>-o root</option>. | 
|---|
|  | 58 | The following <command>sed</command> removes that since we don't have | 
|---|
|  | 59 | users setup yet:</para> | 
|---|
| [bf8c11f] | 60 |  | 
|---|
| [287d7b9] | 61 | <screen os="bd"><userinput>cp -v MCONFIG{,.orig} | 
|---|
| [bf8c11f] | 62 | sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen> | 
|---|
|  | 63 |  | 
|---|
|  | 64 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 65 | href="../../final-system/common/util-linux.xml" | 
|---|
| [e6423a01] | 66 | xpointer="xpointer(//*[@os='a'])"/> | 
|---|
| [bf8c11f] | 67 |  | 
|---|
| [40c1b5b] | 68 | <screen os="be"><userinput>./configure</userinput></screen> | 
|---|
| [bf8c11f] | 69 |  | 
|---|
|  | 70 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 71 | href="../../final-system/common/util-linux.xml" | 
|---|
| [e6423a01] | 72 | xpointer="xpointer(//*[@os='c'])"/> | 
|---|
| [bf8c11f] | 73 |  | 
|---|
| [b66e30f] | 74 | <screen os="bf"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \ | 
|---|
| [a717694] | 75 | HAVE_SHADOW=no CPUOPT="" ARCH="" \ | 
|---|
|  | 76 | CPU=""</userinput></screen> | 
|---|
| [bf8c11f] | 77 |  | 
|---|
| [40c1b5b] | 78 | <variablelist os="bg"> | 
|---|
| [bf8c11f] | 79 | <title>The meaning of the make parameters:</title> | 
|---|
|  | 80 |  | 
|---|
| [f32f537] | 81 | <varlistentry> | 
|---|
|  | 82 | <term><parameter>HAVE_KILL=yes</parameter></term> | 
|---|
|  | 83 | <listitem> | 
|---|
|  | 84 | <para>This prevents the <command>kill</command> program | 
|---|
|  | 85 | from being built.</para> | 
|---|
|  | 86 | </listitem> | 
|---|
|  | 87 | </varlistentry> | 
|---|
| [bf8c11f] | 88 |  | 
|---|
|  | 89 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 90 | href="../../final-system/common/util-linux.xml" | 
|---|
| [e6423a01] | 91 | xpointer="xpointer(//*[@os='e2'])"/> | 
|---|
| [bf8c11f] | 92 |  | 
|---|
|  | 93 | <varlistentry> | 
|---|
|  | 94 | <term><parameter>HAVE_SHADOW=no</parameter></term> | 
|---|
|  | 95 | <listitem> | 
|---|
| [b66e30f] | 96 | <para>This disables linking to shadow .</para> | 
|---|
| [bf8c11f] | 97 | </listitem> | 
|---|
|  | 98 | </varlistentry> | 
|---|
|  | 99 |  | 
|---|
|  | 100 | <varlistentry> | 
|---|
|  | 101 | <term><parameter>CPUOPT=""</parameter></term> | 
|---|
|  | 102 | <listitem> | 
|---|
| [b66e30f] | 103 | <para>This disables any compiler optimizations by CPU type.</para> | 
|---|
| [bf8c11f] | 104 | </listitem> | 
|---|
|  | 105 | </varlistentry> | 
|---|
|  | 106 |  | 
|---|
|  | 107 | <varlistentry> | 
|---|
|  | 108 | <term><parameter>ARCH=""</parameter></term> | 
|---|
|  | 109 | <listitem> | 
|---|
| [b66e30f] | 110 | <para>This disables the detection of the architecture.</para> | 
|---|
| [bf8c11f] | 111 | </listitem> | 
|---|
|  | 112 | </varlistentry> | 
|---|
|  | 113 |  | 
|---|
|  | 114 | <varlistentry> | 
|---|
|  | 115 | <term><parameter>CPU=""</parameter></term> | 
|---|
|  | 116 | <listitem> | 
|---|
| [b66e30f] | 117 | <para>This disables the detection of the CPU.</para> | 
|---|
| [bf8c11f] | 118 | </listitem> | 
|---|
|  | 119 | </varlistentry> | 
|---|
|  | 120 |  | 
|---|
|  | 121 | </variablelist> | 
|---|
|  | 122 |  | 
|---|
| [40c1b5b] | 123 | <para os="bh">Install the package:</para> | 
|---|
| [bf8c11f] | 124 |  | 
|---|
| [b66e30f] | 125 | <screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \ | 
|---|
| [a717694] | 126 | USE_TTY_GROUP=no CPUOPT="" ARCH="" \ | 
|---|
| [f1fd69a] | 127 | CPU="" DESTDIR=${CLFS} install</userinput></screen> | 
|---|
| [bf8c11f] | 128 |  | 
|---|
|  | 129 | </sect2> | 
|---|
|  | 130 |  | 
|---|
|  | 131 | <sect2 role="content"> | 
|---|
|  | 132 | <title/> | 
|---|
|  | 133 |  | 
|---|
|  | 134 | <para>Details on this package are located in <xref | 
|---|
|  | 135 | linkend="contents-util-linux" role="."/></para> | 
|---|
|  | 136 |  | 
|---|
|  | 137 | </sect2> | 
|---|
|  | 138 |  | 
|---|
|  | 139 | </sect1> | 
|---|