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

This commit is contained in:
Xi Ruoyao 2021-08-25 01:35:21 +08:00
parent febac5114b
commit ae636e7f20
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC
3 changed files with 87 additions and 0 deletions

View File

@ -31,4 +31,6 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="binutils-pass2.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="binutils-pass2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gcc-pass2.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gcc-pass2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
</chapter> </chapter>

83
chapter06/util-linux.xml Normal file
View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-tools-mount-setsid" role="wrap">
<?dbhtml filename="util-linux.html"?>
<sect1info condition="script">
<productname>util-linux</productname>
<productnumber>&util-linux-version;</productnumber>
<address>&util-linux-url;</address>
</sect1info>
<title>Programs from Util-linux-&util-linux-version;</title>
<indexterm zone="ch-tools-mount-setsid">
<primary sortas="a-mount-setsid">programs from util-linux</primary>
<secondary>tools</secondary>
</indexterm>
<sect2 role="package">
<title/>
<para><command>agetty</command>, <command>mount</command>, and
<command>setsid</command> are utilities in
<application>Util-Linux</application>. We need them to
set up the environment once we boot the temporary system.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&mount-setsid-sbu;</seg>
<seg>&mount-setsid-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of agetty, setsid and mount</title>
<para>Prepare Util-linux for compilation:</para>
<screen><userinput remap="configure">./configure --build=$(config/config.guess) --host=$LFS_TGT --disable-shared</userinput></screen>
<variablelist>
<title>The meaning of the configure option:</title>
<varlistentry>
<term><parameter>--disable-shared</parameter></term>
<listitem>
<para>We do not need to install any of the shared libraries at
this time, therefore there is no need to build them.</para>
</listitem>
</varlistentry>
</variablelist>
<para>We only need three tools from the package now, build them:</para>
<screen><userinput remap="make">make agetty mount setsid</userinput></screen>
<para>Install the tools:</para>
<screen><userinput remap="install">install -vm755 agetty $LFS/usr/sbin
install -vm755 mount setsid $LFS/usr/bin</userinput></screen>
</sect2>
<sect2 role="content">
<title/>
<para>Details on this package are located in
<xref linkend="contents-utillinux" role="."/></para>
</sect2>
</sect1>

View File

@ -719,6 +719,8 @@
<!ENTITY util-linux-tmp-sbu "0.7 SBU"> <!ENTITY util-linux-tmp-sbu "0.7 SBU">
<!ENTITY util-linux-fin-du "261 MB"> <!ENTITY util-linux-fin-du "261 MB">
<!ENTITY util-linux-fin-sbu "1.1 SBU"> <!ENTITY util-linux-fin-sbu "1.1 SBU">
<!ENTITY mount-setsid-du "85 MB">
<!ENTITY mount-setsid-sbu "less than 0.1 SBU">
<!ENTITY vim-version "8.2.4383"> <!ENTITY vim-version "8.2.4383">
<!ENTITY vim-majmin "82"> <!ENTITY vim-majmin "82">