source: BOOK/boot/common/util-linux.xml@ 93aa336

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 93aa336 was 93adf44a, checked in by Jim Gifford <clfs@…>, 19 years ago

r653@server (orig r651): manuel | 2005-11-08 11:36:13 -0800
Preparations to remove SBUs and DUs. Chapter boot.

  • Property mode set to 100644
File size: 4.2 KB
Line 
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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-boot-util-linux" role="wrap">
11 <?dbhtml filename="util-linux.html"?>
12
13 <title>Util-linux-&util-linux-version;</title>
14
15 <indexterm zone="ch-boot-util-linux">
16 <primary sortas="a-Util-linux">Util-linux</primary>
17 <secondary>boot</secondary>
18 </indexterm>
19
20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../../final-system/common/util-linux.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
23
24 <sect2 role="installation">
25 <title>Installation of Util-linux</title>
26
27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28 href="../../final-system/common/util-linux.xml"
29 xpointer="xpointer(//*[@os='a'])"/>
30
31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32 href="../../final-system/common/util-linux.xml"
33 xpointer="xpointer(//*[@os='b'])"/>
34
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../../final-system/common/util-linux.xml"
37 xpointer="xpointer(//*[@os='b1'])"/>
38
39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
40 href="../../final-system/common/util-linux.xml"
41 xpointer="xpointer(//*[@os='b2'])"/>
42
43 <para os="ba">Util-linux does not use the freshly installed headers and
44 libraries from the <filename class="directory">/tools</filename>
45 directory by default. This is fixed by altering the configure script:</para>
46
47<screen os="bb"><userinput>cp configure{,.orig}
48sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen>
49
50 <para os="bc">Util-linux installs uses <option>-o root</option>, the following
51 <command>sed</command> removes that since we don't have users setup
52 yet:</para>
53
54<screen os="bd"><userinput>cp MCONFIG{,.orig}
55sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../../final-system/common/util-linux.xml"
59 xpointer="xpointer(//*[@os='c'])"/>
60
61<screen><userinput>./configure</userinput></screen>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../final-system/common/util-linux.xml"
65 xpointer="xpointer(//*[@os='d'])"/>
66
67<screen os="be"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no CPUOPT="" ARCH="" CPU=""</userinput></screen>
68
69 <variablelist os="bf">
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"
74 xpointer="xpointer(//*[@os='fa'])"/>
75
76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
77 href="../../final-system/common/util-linux.xml"
78 xpointer="xpointer(//*[@os='fb'])"/>
79
80 <varlistentry>
81 <term><parameter>HAVE_SHADOW=no</parameter></term>
82 <listitem>
83 <para>This do ... .</para>
84 </listitem>
85 </varlistentry>
86
87 <varlistentry>
88 <term><parameter>CPUOPT=""</parameter></term>
89 <listitem>
90 <para>This do ... .</para>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry>
95 <term><parameter>ARCH=""</parameter></term>
96 <listitem>
97 <para>This do ... .</para>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry>
102 <term><parameter>CPU=""</parameter></term>
103 <listitem>
104 <para>This do ... .</para>
105 </listitem>
106 </varlistentry>
107
108 </variablelist>
109
110 <para os="bg">Install the package:</para>
111
112<screen os="bh"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no USE_TTY_GROUP=no CPUOPT="" ARCH="" CPU="" DESTDIR=${LFS} install</userinput></screen>
113
114 <para os="bi">Now we will put a copy of mount in <filename
115 class="directory">/tools/bin</filename>:</para>
116
117<screen os="bj"><userinput>cp ${LFS}/bin/mount /tools/bin</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="content">
122 <title/>
123
124 <para>Details on this package are located in <xref
125 linkend="contents-util-linux" role="."/></para>
126
127 </sect2>
128
129</sect1>
Note: See TracBrowser for help on using the repository browser.