mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
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:
parent
3c7ea1f646
commit
4783efe5de
@ -38,6 +38,12 @@
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>2013-12-07</para>
|
<para>2013-12-07</para>
|
||||||
<itemizedlist>
|
<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>
|
<listitem>
|
||||||
<para>[bdubbs] - Supress installing sysvinit's mesg and last
|
<para>[bdubbs] - Supress installing sysvinit's mesg and last
|
||||||
that overwrite the versions installed by util-linux.
|
that overwrite the versions installed by util-linux.
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>ext4</term>
|
<term>ext4</term>
|
||||||
<listitem><para>is the latest version of the ext file system family of
|
<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
|
nano-second timestamps, creation and use of very large files (16 TB), and
|
||||||
speed improvements.</para>
|
speed improvements.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -99,7 +99,7 @@ cd ../gcc-build</userinput></screen>
|
|||||||
searched by the C++ compiler. In a normal build, this information
|
searched by the C++ compiler. In a normal build, this information
|
||||||
is automatically passed to the Libstdc++ <command>configure</command>
|
is automatically passed to the Libstdc++ <command>configure</command>
|
||||||
options from the toplevel directory. In our case, this information
|
options from the toplevel directory. In our case, this information
|
||||||
must be explicitely given.</para>
|
must be explicitly given.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -430,6 +430,16 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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">
|
<varlistentry id="libgcc">
|
||||||
<term><filename class="libraryfile">libgcc</filename></term>
|
<term><filename class="libraryfile">libgcc</filename></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
<application>systemd</application> source code that have explicit directory
|
<application>systemd</application> source code that have explicit directory
|
||||||
paths embedded. For instance, the binary version of the hardware
|
paths embedded. For instance, the binary version of the hardware
|
||||||
database's path and file name used at run time,
|
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>
|
changes to the source code.</para></caution>
|
||||||
|
|
||||||
<para>Now initialize the hardware database:</para>
|
<para>Now initialize the hardware database:</para>
|
||||||
|
@ -56,13 +56,15 @@
|
|||||||
|
|
||||||
<para>Maintained versions of the <command>wall</command>,
|
<para>Maintained versions of the <command>wall</command>,
|
||||||
<command>mountpoint</command>, <command>last</command>,
|
<command>mountpoint</command>, <command>last</command>,
|
||||||
<command>mesg</command>, and <command>utmpdump</command> programs were
|
<command>mesg</command>, <command>sulogin</command>, and
|
||||||
installed earlier by Util-linux. Suppress the installation of Sysvinit's
|
<command>utmpdump</command> programs were installed earlier by Util-linux.
|
||||||
versions of these programs and their man pages:</para>
|
Suppress the installation of Sysvinit's versions of these programs and
|
||||||
|
their man pages:</para>
|
||||||
|
|
||||||
<screen><userinput remap="make">sed -i -e '/utmpdump/d' \
|
<screen><userinput remap="make">sed -ri -e '/utmpdump/d' \
|
||||||
-e '/mountpoint/d' \
|
-e '/mountpoint/d' \
|
||||||
-e '/mesg/d' src/Makefile</userinput></screen>
|
-e '/mesg/d' \
|
||||||
|
-e 's/= sulogin(\.8)?/=/' src/Makefile</userinput></screen>
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<para>Compile the package:</para>
|
||||||
|
|
||||||
@ -83,10 +85,9 @@
|
|||||||
<segtitle>Installed programs</segtitle>
|
<segtitle>Installed programs</segtitle>
|
||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>bootlogd, fstab-decode, halt, init, killall5,
|
<seg>bootlogd, fstab-decode, halt, init, killall5, pidof (link to
|
||||||
lastb (link to last), pidof (link to killall5),
|
killall5), poweroff (link to halt), reboot (link to halt), runlevel,
|
||||||
poweroff (link to halt), reboot (link to halt), runlevel, shutdown,
|
shutdown, and telinit (link to init)</seg>
|
||||||
sulogin, and telinit (link to init)</seg>
|
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
|
|
||||||
@ -153,17 +154,6 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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">
|
<varlistentry id="pidof">
|
||||||
<term><command>pidof</command></term>
|
<term><command>pidof</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -218,18 +208,6 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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">
|
<varlistentry id="telinit">
|
||||||
<term><command>telinit</command></term>
|
<term><command>telinit</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -59,23 +59,9 @@ mkdir -pv /var/lib/hwclock</userinput></screen>
|
|||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of Util-linux</title>
|
<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>
|
<screen><userinput remap="configure">./configure</userinput></screen>
|
||||||
<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>
|
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<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>
|
<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
|
<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
|
your system. To run it, the CONFIG_SCSI_DEBUG option for the kernel must
|
||||||
must be available in the currently running system. The CONFIG_SCSI_DEBUG
|
be available in the currently running system, and must be built as a
|
||||||
option must be built as a module. Building it into the kernel will prevent
|
module. Building it into the kernel will prevent booting. For complete
|
||||||
booting. For complete coverage, other BLFS packages must be installed. If
|
coverage, other BLFS packages must be installed. If desired, this test can
|
||||||
desired, this test can be run after rebooting into the completed LFS system
|
be run after rebooting into the completed LFS system and running:</para>
|
||||||
and running:</para>
|
|
||||||
|
|
||||||
<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
|
<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
|
||||||
</warning>
|
</warning>
|
||||||
@ -117,17 +102,18 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
|
|||||||
|
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu,
|
<seg>addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu,
|
||||||
chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart,
|
chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart, dmesg,
|
||||||
dmesg, eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck,
|
eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck,
|
||||||
fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, i386,
|
fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock,
|
||||||
ionice, ipcmk, ipcrm, ipcs, isosize, kill, ldattach, linux32, linux64,
|
i386, ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb (link to
|
||||||
logger, look, losetup, lsblk, lscpu, lslocks, mcookie, mkfs, mkfs.bfs,
|
last), ldattach, linux32, linux64, logger, look, losetup, lsblk, lscpu,
|
||||||
mkfs.cramfs, mkfs.minix, mkswap, more, mount, mountpoint, namei, partx,
|
lslocks, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap,
|
||||||
pg, pivot_root, prlimit, raw, readprofile, rename, renice, resizepart,
|
more, mount, mountpoint, namei, partx, pg, pivot_root, prlimit, raw,
|
||||||
rev, rtcwake, script, scriptreplay, setarch, setsid, setterm, sfdisk,
|
readprofile, rename, renice, resizepart, rev, rtcwake, script,
|
||||||
swaplabel, swapoff (link to swapon), swapon, switch_root, tailf,
|
scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel,
|
||||||
taskset, ul, umount, unshare, utmpdump, uuidd, uuidgen, wall,
|
swapoff (link to swapon), swapon, switch_root, tailf, taskset, ul,
|
||||||
wdctl, whereis, wipefs, and x86_64</seg>
|
umount, unshare, utmpdump, uuidd, uuidgen, wall, wdctl, whereis,
|
||||||
|
wipefs, and x86_64</seg>
|
||||||
|
|
||||||
<seg>libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so}</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>
|
</listitem>
|
||||||
</varlistentry>
|
</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">
|
<varlistentry id="ldattach">
|
||||||
<term><command>ldattach</command></term>
|
<term><command>ldattach</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -648,6 +657,17 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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">
|
<varlistentry id="mkfs">
|
||||||
<term><command>mkfs</command></term>
|
<term><command>mkfs</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -926,6 +946,18 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</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">
|
<varlistentry id="swaplabel">
|
||||||
<term><command>swaplabel</command></term>
|
<term><command>swaplabel</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user