Enable building sulogin in util-linux.

Supress installing sysvinit's sulogin.
Several text updates from Chris Staub.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10386 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2013-12-08 03:02:53 +00:00
parent 3c7ea1f646
commit 4783efe5de
7 changed files with 95 additions and 69 deletions

View File

@ -38,6 +38,12 @@
<listitem>
<para>2013-12-07</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Enable building sulogin in util-linux.
Supress installing sysvinit's sulogin.
Fixes
<ulink url="&lfs-ticket-root;3435">#3435</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Supress installing sysvinit's mesg and last
that overwrite the versions installed by util-linux.

View File

@ -34,7 +34,7 @@
<varlistentry>
<term>ext4</term>
<listitem><para>is the latest version of the ext file system family of
partition types. It provides several new capabilties including
partition types. It provides several new capabilities including
nano-second timestamps, creation and use of very large files (16 TB), and
speed improvements.</para>
</listitem>

View File

@ -99,7 +99,7 @@ cd ../gcc-build</userinput></screen>
searched by the C++ compiler. In a normal build, this information
is automatically passed to the Libstdc++ <command>configure</command>
options from the toplevel directory. In our case, this information
must be explicitely given.</para>
must be explicitly given.</para>
</listitem>
</varlistentry>

View File

@ -430,6 +430,16 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
</listitem>
</varlistentry>
<varlistentry id="libasan">
<term><command>libasan</command></term>
<listitem>
<para>The Address Sanitizer runtime library</para>
<indexterm zone="ch-system-gcc libasan">
<primary sortas="b-libasan">libasan</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libgcc">
<term><filename class="libraryfile">libgcc</filename></term>
<listitem>

View File

@ -65,7 +65,7 @@
<application>systemd</application> source code that have explicit directory
paths embedded. For instance, the binary version of the hardware
database's path and file name used at run time,
<filename>/etc/udev/hwdb.bin</filename>, cannot be changed without explict
<filename>/etc/udev/hwdb.bin</filename>, cannot be changed without explicit
changes to the source code.</para></caution>
<para>Now initialize the hardware database:</para>

View File

@ -56,13 +56,15 @@
<para>Maintained versions of the <command>wall</command>,
<command>mountpoint</command>, <command>last</command>,
<command>mesg</command>, and <command>utmpdump</command> programs were
installed earlier by Util-linux. Suppress the installation of Sysvinit's
versions of these programs and their man pages:</para>
<command>mesg</command>, <command>sulogin</command>, and
<command>utmpdump</command> programs were installed earlier by Util-linux.
Suppress the installation of Sysvinit's versions of these programs and
their man pages:</para>
<screen><userinput remap="make">sed -i -e '/utmpdump/d' \
-e '/mountpoint/d' \
-e '/mesg/d' src/Makefile</userinput></screen>
<screen><userinput remap="make">sed -ri -e '/utmpdump/d' \
-e '/mountpoint/d' \
-e '/mesg/d' \
-e 's/= sulogin(\.8)?/=/' src/Makefile</userinput></screen>
<para>Compile the package:</para>
@ -83,10 +85,9 @@
<segtitle>Installed programs</segtitle>
<seglistitem>
<seg>bootlogd, fstab-decode, halt, init, killall5,
lastb (link to last), pidof (link to killall5),
poweroff (link to halt), reboot (link to halt), runlevel, shutdown,
sulogin, and telinit (link to init)</seg>
<seg>bootlogd, fstab-decode, halt, init, killall5, pidof (link to
killall5), poweroff (link to halt), reboot (link to halt), runlevel,
shutdown, and telinit (link to init)</seg>
</seglistitem>
</segmentedlist>
@ -153,17 +154,6 @@
</listitem>
</varlistentry>
<varlistentry id="lastb">
<term><command>lastb</command></term>
<listitem>
<para>Shows the failed login attempts, as logged in
<filename>/var/log/btmp</filename></para>
<indexterm zone="ch-system-sysvinit lastb">
<primary sortas="b-lastb">lastb</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="pidof">
<term><command>pidof</command></term>
<listitem>
@ -218,18 +208,6 @@
</listitem>
</varlistentry>
<varlistentry id="sulogin">
<term><command>sulogin</command></term>
<listitem>
<para>Allows <systemitem class="username">root</systemitem> to log in;
it is normally invoked by <command>init</command> when the system goes
into single user mode</para>
<indexterm zone="ch-system-sysvinit sulogin">
<primary sortas="b-sulogin">sulogin</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="telinit">
<term><command>telinit</command></term>
<listitem>

View File

@ -59,23 +59,9 @@ mkdir -pv /var/lib/hwclock</userinput></screen>
<sect2 role="installation">
<title>Installation of Util-linux</title>
<screen><userinput remap="configure">./configure --disable-su --disable-sulogin --disable-login</userinput></screen>
<para>Prepare Util-linux for compilation:</para>
<variablelist>
<title>The meaning of the configure option:</title>
<varlistentry>
<term><parameter>--disable-*</parameter></term>
<listitem>
<para>These switches disable building su, sulogin, and login. They
duplicate the same programs provided by <xref
linkend='ch-system-shadow'/> and <xref linkend='ch-system-sysvinit'/>.
They also require
<ulink url="&blfs-root;/view/svn/postlfs/linux-pam.html">Linux-PAM</ulink>
which is not available in LFS.</para>
</listitem>
</varlistentry>
</variablelist>
<screen><userinput remap="configure">./configure</userinput></screen>
<para>Compile the package:</para>
@ -84,12 +70,11 @@ mkdir -pv /var/lib/hwclock</userinput></screen>
<para>If desired, run the test suite as a non-root user:</para>
<warning><para>Running the test suite as the root user can be harmful to
your system. To run it, the kernel CONFIG_SCSI_DEBUG option for the kernel
must be available in the currently running system. The CONFIG_SCSI_DEBUG
option must be built as a module. Building it into the kernel will prevent
booting. For complete coverage, other BLFS packages must be installed. If
desired, this test can be run after rebooting into the completed LFS system
and running:</para>
your system. To run it, the CONFIG_SCSI_DEBUG option for the kernel must
be available in the currently running system, and must be built as a
module. Building it into the kernel will prevent booting. For complete
coverage, other BLFS packages must be installed. If desired, this test can
be run after rebooting into the completed LFS system and running:</para>
<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
</warning>
@ -117,17 +102,18 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
<seglistitem>
<seg>addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu,
chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart,
dmesg, eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck,
fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, i386,
ionice, ipcmk, ipcrm, ipcs, isosize, kill, ldattach, linux32, linux64,
logger, look, losetup, lsblk, lscpu, lslocks, mcookie, mkfs, mkfs.bfs,
mkfs.cramfs, mkfs.minix, mkswap, more, mount, mountpoint, namei, partx,
pg, pivot_root, prlimit, raw, readprofile, rename, renice, resizepart,
rev, rtcwake, script, scriptreplay, setarch, setsid, setterm, sfdisk,
swaplabel, swapoff (link to swapon), swapon, switch_root, tailf,
taskset, ul, umount, unshare, utmpdump, uuidd, uuidgen, wall,
wdctl, whereis, wipefs, and x86_64</seg>
chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart, dmesg,
eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck,
fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock,
i386, ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb (link to
last), ldattach, linux32, linux64, logger, look, losetup, lsblk, lscpu,
lslocks, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap,
more, mount, mountpoint, namei, partx, pg, pivot_root, prlimit, raw,
readprofile, rename, renice, resizepart, rev, rtcwake, script,
scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel,
swapoff (link to swapon), swapon, switch_root, tailf, taskset, ul,
umount, unshare, utmpdump, uuidd, uuidgen, wall, wdctl, whereis,
wipefs, and x86_64</seg>
<seg>libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so}</seg>
@ -546,6 +532,29 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
</listitem>
</varlistentry>
<varlistentry id="last">
<term><command>last</command></term>
<listitem>
<para>Shows which users last logged in (and out), searching back
through the <filename>/var/log/wtmp</filename> file; it also shows
system boots, shutdowns, and run-level changes</para>
<indexterm zone="ch-system-util-linux last">
<primary sortas="b-last">last</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="lastb">
<term><command>lastb</command></term>
<listitem>
<para>Shows the failed login attempts, as logged in
<filename>/var/log/btmp</filename></para>
<indexterm zone="ch-system-util-linux lastb">
<primary sortas="b-lastb">lastb</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ldattach">
<term><command>ldattach</command></term>
<listitem>
@ -648,6 +657,17 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
</listitem>
</varlistentry>
<varlistentry id="mesg">
<term><command>mesg</command></term>
<listitem>
<para>Controls whether other users can send messages to the current
user's terminal</para>
<indexterm zone="ch-system-util-linux mesg">
<primary sortas="b-mesg">mesg</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="mkfs">
<term><command>mkfs</command></term>
<listitem>
@ -926,6 +946,18 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
</listitem>
</varlistentry>
<varlistentry id="sulogin">
<term><command>sulogin</command></term>
<listitem>
<para>Allows <systemitem class="username">root</systemitem> to log in;
it is normally invoked by <command>init</command> when the system goes
into single user mode</para>
<indexterm zone="ch-system-util-linux sulogin">
<primary sortas="b-sulogin">sulogin</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="swaplabel">
<term><command>swaplabel</command></term>
<listitem>