source: chapter06/util-linux.xml@ ae636e7

xry111/clfs-ng
Last change on this file since ae636e7 was ae636e7, checked in by Xi Ruoyao <xry111@…>, 9 months ago

cross-ng: chapter 6: add agetty, mount, and setsid from util-linux

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-tools-mount-setsid" role="wrap">
9 <?dbhtml filename="util-linux.html"?>
10
11 <sect1info condition="script">
12 <productname>util-linux</productname>
13 <productnumber>&util-linux-version;</productnumber>
14 <address>&util-linux-url;</address>
15 </sect1info>
16
17 <title>Programs from Util-linux-&util-linux-version;</title>
18
19 <indexterm zone="ch-tools-mount-setsid">
20 <primary sortas="a-mount-setsid">programs from util-linux</primary>
21 <secondary>tools</secondary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title/>
26
27 <para><command>agetty</command>, <command>mount</command>, and
28 <command>setsid</command> are utilities in
29 <application>Util-Linux</application>. We need them to
30 set up the environment once we boot the temporary system.</para>
31
32 <segmentedlist>
33 <segtitle>&buildtime;</segtitle>
34 <segtitle>&diskspace;</segtitle>
35
36 <seglistitem>
37 <seg>&mount-setsid-sbu;</seg>
38 <seg>&mount-setsid-du;</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of agetty, setsid and mount</title>
46
47 <para>Prepare Util-linux for compilation:</para>
48
49<screen><userinput remap="configure">./configure --build=$(config/config.guess) --host=$LFS_TGT --disable-shared</userinput></screen>
50
51 <variablelist>
52 <title>The meaning of the configure option:</title>
53
54 <varlistentry>
55 <term><parameter>--disable-shared</parameter></term>
56 <listitem>
57 <para>We do not need to install any of the shared libraries at
58 this time, therefore there is no need to build them.</para>
59 </listitem>
60 </varlistentry>
61
62 </variablelist>
63
64 <para>We only need three tools from the package now, build them:</para>
65
66<screen><userinput remap="make">make agetty mount setsid</userinput></screen>
67
68 <para>Install the tools:</para>
69
70<screen><userinput remap="install">install -vm755 agetty $LFS/usr/sbin
71install -vm755 mount setsid $LFS/usr/bin</userinput></screen>
72
73 </sect2>
74
75 <sect2 role="content">
76 <title/>
77
78 <para>Details on this package are located in
79 <xref linkend="contents-utillinux" role="."/></para>
80
81 </sect2>
82
83</sect1>
Note: See TracBrowser for help on using the repository browser.