aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2013-12-08 03:02:53 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2013-12-08 03:02:53 +0000
commit4783efe5de8eccca80fa9c7c7b9d6323fd045c9f (patch)
treebd993e52cd35466a77730871e154269f7ebf0854
parent3c7ea1f646524a45905371d0fbadc99f9f9d64a3 (diff)
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
-rw-r--r--chapter01/changelog.xml6
-rw-r--r--chapter02/creatingfilesystem.xml2
-rw-r--r--chapter05/libstdc++.xml2
-rw-r--r--chapter06/gcc.xml10
-rw-r--r--chapter06/systemd.xml2
-rw-r--r--chapter06/sysvinit.xml44
-rw-r--r--chapter06/util-linux.xml98
7 files changed, 95 insertions, 69 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 34b3b8abb..abdd758cf 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -39,6 +39,12 @@
<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.
Thanks to Chris Staub. Fixes
diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml
index a5b9df3d9..75c81b227 100644
--- a/chapter02/creatingfilesystem.xml
+++ b/chapter02/creatingfilesystem.xml
@@ -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>
diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml
index 02c4a05db..9a6ad2415 100644
--- a/chapter05/libstdc++.xml
+++ b/chapter05/libstdc++.xml
@@ -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>
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index e9e0dbe04..34cff2785 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -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>
diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml
index a312bd05c..ca1fa4b43 100644
--- a/chapter06/systemd.xml
+++ b/chapter06/systemd.xml
@@ -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>
diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml
index 98851f709..548616b84 100644
--- a/chapter06/sysvinit.xml
+++ b/chapter06/sysvinit.xml
@@ -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>
diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml
index 96949d86f..063082be0 100644
--- a/chapter06/util-linux.xml
+++ b/chapter06/util-linux.xml
@@ -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>