1
0
mirror of https://git.linuxfromscratch.org/lfs.git synced 2025-07-08 05:21:02 +01:00

Merge branch 'trunk' into plabs/condxml

This commit is contained in:
Pierre Labastie 2021-09-15 09:24:40 +02:00
commit d4c8dce412
125 changed files with 750 additions and 1477 deletions

20
INSTALL
View File

@ -1,11 +1,11 @@
LFS Book Conversion Tools Installation Instructions LFS Book Conversion Tools Installation Instructions
After downloading the SVN source, there are some things that need to be set up After downloading the SVN source, there are some things that need to be set up
on your computer if you want to convert the XML source into something easier to on your computer if you want to convert the XML source into something easier to
read (e.g. HTML, TXT, or PDF). If you are interested in this, then keep read (e.g. HTML, TXT, or PDF). If you are interested in this, then keep
reading. If you are only interested in editing the XML source for re- reading. If you are only interested in editing the XML source for re-
submission to the lfs-book or lfs-dev mailing lists, then you do not need this submission to the lfs-book or lfs-dev mailing lists, then you do not need this
document. Instead, you need to read the LFS Editor's Manual. See the LFS document. Instead, you need to read the LFS Editor's Manual. See the LFS
website at https://www.linuxfromscratch.org for more information. website at https://www.linuxfromscratch.org for more information.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
@ -18,16 +18,16 @@ If you want to convert the XML to HTML, install the following:
* libxslt * libxslt
- https://www.linuxfromscratch.org/blfs/view/svn/general/libxslt.html - https://www.linuxfromscratch.org/blfs/view/svn/general/libxslt.html
* DocBook DTD * DocBook DTD
- https://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html - https://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html
* DocBook XSL Stylesheets * DocBook XSL Stylesheets
- https://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html - https://www.linuxfromscratch.org/blfs/view/svn/pst/docbook-xsl.html
* HTMLTidy * HTMLTidy
- https://www.linuxfromscratch.org/blfs/view/svn/general/tidy-html5.html - https://www.linuxfromscratch.org/blfs/view/svn/general/tidy-html5.html
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
If you want to convert the XML to TXT, install the above items, and then install If you want to convert the XML to TXT, install the above items, and then install
the following: the following:
@ -35,7 +35,7 @@ the following:
* lynx * lynx
- https://www.linuxfromscratch.org/blfs/view/svn/basicnet/lynx.html - https://www.linuxfromscratch.org/blfs/view/svn/basicnet/lynx.html
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
If you want to convert the XML to PDF, install the items listed above (except If you want to convert the XML to PDF, install the items listed above (except
lynx) and then install the following: lynx) and then install the following:

View File

@ -143,7 +143,7 @@ validate: tmpdir version
$(Q)./aux-file-data.sh $(RENDERTMP)/lfs-full.xml $(Q)./aux-file-data.sh $(RENDERTMP)/lfs-full.xml
@echo "Validation complete." @echo "Validation complete."
profile-html: profile-html:
@echo "Generating profiled XML for XHTML..." @echo "Generating profiled XML for XHTML..."
$(Q)xsltproc --nonet \ $(Q)xsltproc --nonet \
--stringparam profile.condition html \ --stringparam profile.condition html \

6
README
View File

@ -1,13 +1,13 @@
LFS Book README LFS Book README
This document is meant to instruct the user on how to convert the book's XML This document is meant to instruct the user on how to convert the book's XML
source to other formats (e.g. HTML, PDF, PS and TXT). First, if you have not source to other formats (e.g. HTML, PDF, PS and TXT). First, if you have not
already done so, please read the INSTALL file for instructions on how to install already done so, please read the INSTALL file for instructions on how to install
the required software. If you have already completed the steps outlined in the the required software. If you have already completed the steps outlined in the
INSTALL file, then continue reading for examples how to convert these files into INSTALL file, then continue reading for examples how to convert these files into
various other formats. various other formats.
In all examples, setting the parameter REV=systemd is needed to build the In all examples, setting the parameter REV=systemd is needed to build the
systemd version of the book. systemd version of the book.
XML to XHTML: XML to XHTML:

View File

@ -75,13 +75,13 @@
</listitem> </listitem>
<listitem> <listitem>
<para><ulink url="mailto:jmengual@linuxfromscratch.org">Jean-Philippe <para><ulink url="mailto:jmengual@linuxfromscratch.org">Jean-Philippe
Mengual </ulink> &lt;jmengual@linuxfromscratch.org&gt; &ndash; French LFS Mengual </ulink> &lt;jmengual@linuxfromscratch.org&gt; &ndash; French LFS
translation project 2008-2016</para> translation project 2008-2016</para>
</listitem> </listitem>
<listitem> <listitem>
<para><ulink url="mailto:jlepiller@linuxfromscratch.org">Julien <para><ulink url="mailto:jlepiller@linuxfromscratch.org">Julien
Lepiller </ulink> &lt;jlepiller@linuxfromscratch.org&gt; &ndash; French LFS Lepiller </ulink> &lt;jlepiller@linuxfromscratch.org&gt; &ndash; French LFS
translation project 2017-present</para> translation project 2017-present</para>
</listitem> </listitem>
@ -99,13 +99,13 @@
</listitem> </listitem>
<listitem> <listitem>
<para><ulink url="mailto:info@linuxfromscratch.org.ru">Anton Maisak</ulink> <para><ulink url="mailto:info@linuxfromscratch.org.ru">Anton Maisak</ulink>
&lt;info@linuxfromscratch.org.ru&gt; &ndash; Russian LFS &lt;info@linuxfromscratch.org.ru&gt; &ndash; Russian LFS
translation project</para> translation project</para>
</listitem> </listitem>
<listitem> <listitem>
<para><ulink url="mailto:helen@linuxfromscratch.org.ru">Elena Shevcova</ulink> <para><ulink url="mailto:helen@linuxfromscratch.org.ru">Elena Shevcova</ulink>
&lt;helen@linuxfromscratch.org.ru&gt; &ndash; Russian LFS &lt;helen@linuxfromscratch.org.ru&gt; &ndash; Russian LFS
translation project</para> translation project</para>
</listitem> </listitem>

View File

@ -472,7 +472,7 @@
<seglistitem> <seglistitem>
<seg> <seg>
<ulink url="https://metacpan.org/pod/Expect">Expect.pm</ulink> <ulink url="https://metacpan.org/pod/Expect">Expect.pm</ulink>
and and
<ulink url="https://metacpan.org/pod/IO::Tty">IO::Tty</ulink> <ulink url="https://metacpan.org/pod/IO::Tty">IO::Tty</ulink>
</seg> </seg>
</seglistitem> </seglistitem>
@ -747,7 +747,7 @@
<seglistitem> <seglistitem>
<seg> <seg>
<ulink url="&blfs-book;general/tk.html">Tk</ulink> <ulink url="&blfs-book;general/tk.html">Tk</ulink>
</seg> </seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -950,7 +950,7 @@
<seg> <seg>
<ulink url="http://gcc.gnu.org/wiki/GNAT">GNAT</ulink> <ulink url="http://gcc.gnu.org/wiki/GNAT">GNAT</ulink>
and and
<ulink url="https://repo.or.cz/isl.git">ISL</ulink> <ulink url="https://repo.or.cz/isl.git">ISL</ulink>
</seg> </seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -2556,7 +2556,6 @@
Zlib</seg> Zlib</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
<segmentedlist id="python-testdeps"> <segmentedlist id="python-testdeps">
<segtitle>&testsuites;</segtitle> <segtitle>&testsuites;</segtitle>

View File

@ -6,7 +6,7 @@
* Prevent sendsignals from killing an active mdmon * Prevent sendsignals from killing an active mdmon
2021-04-28 Bruce Dubbs <bdubbs@linuxfromscratch.org> 2021-04-28 Bruce Dubbs <bdubbs@linuxfromscratch.org>
* Make check_signal more robust. * Make check_signal more robust.
* Use a better methog for killproc to remove a dead pid file. * Use a better methog for killproc to remove a dead pid file.
* Clarify what signals killproc accepts. * Clarify what signals killproc accepts.
* Thanks to input and discussion from Scott Andrews. * Thanks to input and discussion from Scott Andrews.
@ -84,7 +84,7 @@
2013-01-24 Bruce Dubbs <bdubbs@linuxfromscratch.org> 2013-01-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
* Remove local attribue of some variables for Bourne * Remove local attribue of some variables for Bourne
shell compatability shell compatability
* Specify /bin/echo in commands with -e switch for * Specify /bin/echo in commands with -e switch for
Bourne shell compatability Bourne shell compatability
2012-10-13 Bruce Dubbs <bdubbs@linuxfromscratch.org> 2012-10-13 Bruce Dubbs <bdubbs@linuxfromscratch.org>
@ -121,7 +121,7 @@
** ifdown now only uses the first SERVICE ** ifdown now only uses the first SERVICE
** Updated ifup.8 to reflect current usage ** Updated ifup.8 to reflect current usage
** ifup ** ifup
*** Move interface up logic to after service scripts. Eliminates the *** Move interface up logic to after service scripts. Eliminates the
need for the LINK_CHECK variable. need for the LINK_CHECK variable.
*** Sets the GATEWAY if the variable is set *** Sets the GATEWAY if the variable is set
*** Add MTU logic to ifup *** Add MTU logic to ifup
@ -167,10 +167,10 @@
*** /lib/lsb is a symlink to /lib/services. *** /lib/lsb is a symlink to /lib/services.
* Create convenience symlink /etc/init.d->/etc/rc.d/init.d. * Create convenience symlink /etc/init.d->/etc/rc.d/init.d.
* Add help and man pages to upup/ifdown. * Add help and man pages to upup/ifdown.
* Append /run/var/bootlog to /var/log/boot.log at the end of * Append /run/var/bootlog to /var/log/boot.log at the end of
the boot sequence. the boot sequence.
* Add capabiltiy to step through the boot scripts at boot time * Add capabiltiy to step through the boot scripts at boot time
* Optionally allow environment variables in sysconfig directory's * Optionally allow environment variables in sysconfig directory's
console, network, and clock files to be placed in rc.site. console, network, and clock files to be placed in rc.site.
* Add an optional FASTBOOT parameter to set /fastboot when rebooting. * Add an optional FASTBOOT parameter to set /fastboot when rebooting.
@ -183,11 +183,11 @@
HEADLESS=1 to skip READ commands HEADLESS=1 to skip READ commands
** Add /etc/sysconfig/init_params for adding environmental parameters ** Add /etc/sysconfig/init_params for adding environmental parameters
to all functions used in bootscripts to all functions used in bootscripts
** Move network configuration to /etc/sysconfig/ifconfig.*. The ** Move network configuration to /etc/sysconfig/ifconfig.*. The
ifconfig files can have any extension. Use IFACE parameter to ifconfig files can have any extension. Use IFACE parameter to
specify the target network interface within the configuration file. specify the target network interface within the configuration file.
** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of
files in /tmp at bootup. Specify the variable in files in /tmp at bootup. Specify the variable in
/etc/sysconfig/init_params. /etc/sysconfig/init_params.
2011-05-31 DJ Lucas <dj@linuxfromscratch.org> 2011-05-31 DJ Lucas <dj@linuxfromscratch.org>
@ -223,8 +223,8 @@
2009-01-02 Bruce Dubbs <bdubbs@linuxfromscratch.org> 2009-01-02 Bruce Dubbs <bdubbs@linuxfromscratch.org>
* lfs/init.d/functions: * lfs/init.d/functions:
* lfs/sysconfig/network-devices/ifup: * lfs/sysconfig/network-devices/ifup:
Updated line widths to accommodate pdf generation in both the above Updated line widths to accommodate pdf generation in both the above
files. files.
2008-10-27 DJ Lucas <dj@linuxfromscratch.org> 2008-10-27 DJ Lucas <dj@linuxfromscratch.org>
@ -341,7 +341,7 @@
n/a - June 2, 2006 n/a - June 2, 2006
* Removed console config file and makefile targets. * Removed console config file and makefile targets.
* Removed references to /dev/bug and bugreport in udevand * Removed references to /dev/bug and bugreport in udev and
udev_retry bootscripts. (DJ Lucas) udev_retry bootscripts. (DJ Lucas)
n/a - April 17, 2006 n/a - April 17, 2006
@ -350,13 +350,13 @@ n/a - April 17, 2006
partition or for some other reason fail the initial replay. (Archaic) partition or for some other reason fail the initial replay. (Archaic)
n/a - April 15, 2006 n/a - April 15, 2006
* Cleaned up contrib directory. Removed: contrib/init.d, * Cleaned up contrib directory. Removed: contrib/init.d,
contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2 contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
patch. (DJ Lucas) patch. (DJ Lucas)
n/a - April 14, 2006 n/a - April 14, 2006
* Merged changes from udev_update branch (DJ Lucas) * Merged changes from udev_update branch (DJ Lucas)
* Replaced a return with an exit and reversed comment changes in * Replaced a return with an exit and reversed comment changes in
udev bootscript. (Dan Nicholson) udev bootscript. (Dan Nicholson)
* Replaced walk_sysfs function in udev bootscript with new udevtrigger * Replaced walk_sysfs function in udev bootscript with new udevtrigger
program and move wait_for_uevents function inline. (DJ Lucas) program and move wait_for_uevents function inline. (DJ Lucas)
@ -369,7 +369,7 @@ n/a - March 21, 2006
to boot_mesg_flush in echo_* functions. (DJ Lucas) to boot_mesg_flush in echo_* functions. (DJ Lucas)
n/a - March 10, 2006 n/a - March 10, 2006
* Moved src argument to ipv4-static-route service script and * Moved src argument to ipv4-static-route service script and
removed from ipv4-static service script. (DJ Lucas) removed from ipv4-static service script. (DJ Lucas)
n/a - March 8. 2006 n/a - March 8. 2006
@ -388,13 +388,13 @@ n/a - September 11, 2005
* Fixed display error with LSB init-functions script * Fixed display error with LSB init-functions script
* Made above killproc/print_status changes in enhanced * Made above killproc/print_status changes in enhanced
bootscripts. bootscripts.
* Made logger service configurable in enhanced * Made logger service configurable in enhanced
bootscripts. (DJ Lucas) bootscripts. (DJ Lucas)
n/a - August 14, 2005 n/a - August 14, 2005
* Added -s flag to pidofproc() for backwards * Added -s flag to pidofproc() for backwards
compatibility (DJ Lucas) compatibility (DJ Lucas)
* Fixed erronous values returned by pidofproc() which * Fixed erronous values returned by pidofproc() which
broke the functionality of statusproc (DJ Lucas) broke the functionality of statusproc (DJ Lucas)
n/a - July 1, 2005 n/a - July 1, 2005
@ -402,8 +402,8 @@ n/a - July 1, 2005
function for ash compliancy (Nathan Coulson) function for ash compliancy (Nathan Coulson)
n/a - June 26, 2005 n/a - June 26, 2005
* Removed consolelog script from contrib * Removed consolelog script from contrib
* Updated interactive rc script in contrib and added * Updated interactive rc script in contrib and added
README.rc-Interactive, added install target to the README.rc-Interactive, added install target to the
Makefile. (DJ Lucas) Makefile. (DJ Lucas)
@ -599,7 +599,7 @@ n/a - September 22, 2004
n/a - September 21, 2004 n/a - September 21, 2004
* boot_mesg has been enhanced. Subsequent calls will overwrite * boot_mesg has been enhanced. Subsequent calls will overwrite
previous text, and it will wrap text basedupon the variable ${WCOL}. previous text, and it will wrap text basedupon the variable ${WCOL}.
(James Robertson) (James Robertson)
* Fixed mtu optional service typo (Kevin P Fleming) * Fixed mtu optional service typo (Kevin P Fleming)
* Added SOURCE variable to ipv4-static-route (Kevin P Fleming) * Added SOURCE variable to ipv4-static-route (Kevin P Fleming)
@ -608,7 +608,7 @@ n/a - September 16, 2004
* nework interfaces are now brought down in reverse order * nework interfaces are now brought down in reverse order
n/a - September 15, 2004 n/a - September 15, 2004
* Added blue bracket, from dj's 3.0-pre1 bootscript package * Added blue bracket, from dj's 3.0-pre1 bootscript package
[echo_failure, echo_warning, and echo_ok] [echo_failure, echo_warning, and echo_ok]
* Added a new function called boot_mesg, meant to replace the echo * Added a new function called boot_mesg, meant to replace the echo
command. command.
@ -632,11 +632,10 @@ n/a - August 7, 2004
* Added missing error redirect (/dev/null) in getpids. (DJ) * Added missing error redirect (/dev/null) in getpids. (DJ)
n/a - August 4, 2004 n/a - August 4, 2004
* Added MODE, DIRMODE, and CONFMODE variables to the makefile * Added MODE, DIRMODE, and CONFMODE variables to the makefile
to allow permissions to be set at install. (DJ) to allow permissions to be set at install. (DJ)
n/a - July 31, 2004 n/a - July 31, 2004
* Moved PIDFILE check to getpids and removed arguments from * Moved PIDFILE check to getpids and removed arguments from
killproc and reloadproc. Signals are now set at beginning of killproc and reloadproc. Signals are now set at beginning of
funtcions script with KILLDELAY. (DJ) funtcions script with KILLDELAY. (DJ)
@ -645,7 +644,7 @@ n/a - July 31, 2004
n/a - July 21, 2004 n/a - July 21, 2004
* Committed DJ Lucas's patch for the killproc function. It no * Committed DJ Lucas's patch for the killproc function. It no
longer requires arguments if PIDFILE is set longer requires arguments if PIDFILE is set
* added --backup to all sysconfig configuration files, so they are not * added --backup to all sysconfig configuration files, so they are not
replaced on a make install replaced on a make install
@ -978,7 +977,7 @@ n/a - March 20, 2004
* Added create-service-dir target and removed from create-dirs * Added create-service-dir target and removed from create-dirs
* Changed service script install targets to use * Changed service script install targets to use
create-service-dir create-service-dir
* Added check for dhcpcd service script for stale pid file * Added check for dhcpcd service script for stale pid file
Suggested by Jeremy Suggested by Jeremy
* Added ifconfig to ipx service script for hosting device not up * Added ifconfig to ipx service script for hosting device not up

View File

@ -29,7 +29,7 @@ create-dirs:
ln -sfn services ${LIBDIR}/lsb ln -sfn services ${LIBDIR}/lsb
ln -sfn rc.d/init.d ${ETCDIR}/init.d ln -sfn rc.d/init.d ${ETCDIR}/init.d
files: create-dirs files: create-dirs
install -m ${MODE} lfs/init.d/checkfs ${ETCDIR}/rc.d/init.d/ install -m ${MODE} lfs/init.d/checkfs ${ETCDIR}/rc.d/init.d/
install -m ${MODE} lfs/init.d/cleanfs ${ETCDIR}/rc.d/init.d/ install -m ${MODE} lfs/init.d/cleanfs ${ETCDIR}/rc.d/init.d/
install -m ${MODE} lfs/init.d/halt ${ETCDIR}/rc.d/init.d/ install -m ${MODE} lfs/init.d/halt ${ETCDIR}/rc.d/init.d/
@ -126,7 +126,7 @@ rc6: files
uninstall: uninstall:
rm -rf ${DESTDIR}/lib/services ${DESTDIR}/lib/lsb ${ETCDIR}/rc.d ${ETCDIR}/init.d \ rm -rf ${DESTDIR}/lib/services ${DESTDIR}/lib/lsb ${ETCDIR}/rc.d ${ETCDIR}/init.d \
${SBIN}/ifup ${SBIN}/ifdown ${MAN8}/ifup.8 ${MAN8}/ifdown.8 \ ${SBIN}/ifup ${SBIN}/ifdown ${MAN8}/ifup.8 ${MAN8}/ifdown.8 \
${ETCDIR}/sysconfig/rc ${ETCDIR}/sysconfig/rc
.PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall .PHONY: all create-dirs install files links rcS rc0 rc1 rc2 rc3 rc4 rc5 rc6 uninstall

View File

@ -48,7 +48,7 @@ CleanFS configuration:
/etc/sysconfig/rc.site /etc/sysconfig/rc.site
- SKIPTMPCLEAN: skips cleaning of /tmp directory - SKIPTMPCLEAN: skips cleaning of /tmp directory
/etc/sysconfig/createfiles /etc/sysconfig/createfiles
Each line is parsed, using space as a deliminator. Each line is parsed, using space as a deliminator.
[NAME] [TYPE] [PERMISSIONS] [USER] [GROUP] [NAME] [TYPE] [PERMISSIONS] [USER] [GROUP]
The below fields are currently only used on dev type. The below fields are currently only used on dev type.

View File

@ -61,7 +61,7 @@ case "${1}" in
msg="${msg}halted and powered off.\n\n" msg="${msg}halted and powered off.\n\n"
log_failure_msg "${msg}" log_failure_msg "${msg}"
log_info_msg "Press Enter to continue..." log_info_msg "Press Enter to continue..."
wait_for_user wait_for_user
/etc/rc.d/init.d/halt stop /etc/rc.d/init.d/halt stop
else else
@ -69,7 +69,7 @@ case "${1}" in
fi fi
if [ -f /forcefsck ]; then if [ -f /forcefsck ]; then
msg="/forcefsck found, forcing file" msg="/forcefsck found, forcing file"
msg="${msg} system checks as requested." msg="${msg} system checks as requested."
log_success_msg "$msg" log_success_msg "$msg"
options="-f" options="-f"
@ -108,7 +108,7 @@ case "${1}" in
msg="${msg}this system will be rebooted\n\n" msg="${msg}this system will be rebooted\n\n"
log_failure_msg "$msg" log_failure_msg "$msg"
log_info_msg "Press Enter to continue..." log_info_msg "Press Enter to continue..."
wait_for_user wait_for_user
reboot -f reboot -f
fi fi
@ -125,7 +125,7 @@ case "${1}" in
msg="${msg}halted and powered off.\n\n" msg="${msg}halted and powered off.\n\n"
log_failure_msg "$msg" log_failure_msg "$msg"
log_info_msg "Press Enter to continue..." log_info_msg "Press Enter to continue..."
wait_for_user wait_for_user
/etc/rc.d/init.d/halt stop /etc/rc.d/init.d/halt stop
fi fi

View File

@ -22,7 +22,7 @@
# Default-Stop: # Default-Stop:
# Short-Description: Cleans temporary directories early in the boot process. # Short-Description: Cleans temporary directories early in the boot process.
# Description: Cleans temporary directories /run, /var/lock, and # Description: Cleans temporary directories /run, /var/lock, and
# optionally, /tmp. cleanfs also creates /run/utmp # optionally, /tmp. cleanfs also creates /run/utmp
# and any files defined in /etc/sysconfig/createfiles. # and any files defined in /etc/sysconfig/createfiles.
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO
@ -30,7 +30,7 @@
. /lib/lsb/init-functions . /lib/lsb/init-functions
# Function to create files/directory on boot. # Function to create files/directory on boot.
create_files() create_files()
{ {
# Input to file descriptor 9 and output to stdin (redirection) # Input to file descriptor 9 and output to stdin (redirection)
exec 9>&0 < /etc/sysconfig/createfiles exec 9>&0 < /etc/sysconfig/createfiles
@ -63,13 +63,13 @@ create_files()
pipe) pipe)
mknod "${name}" p mknod "${name}" p
;; ;;
*) *)
log_warning_msg "\nUnknown device type: ${dtype}" log_warning_msg "\nUnknown device type: ${dtype}"
;; ;;
esac esac
;; ;;
*) *)
log_warning_msg "\nUnknown type: ${type}" log_warning_msg "\nUnknown type: ${type}"
continue continue
;; ;;
esac esac
@ -87,10 +87,10 @@ create_files()
case "${1}" in case "${1}" in
start) start)
log_info_msg "Cleaning file systems:" log_info_msg "Cleaning file systems:"
if [ "${SKIPTMPCLEAN}" = "" ]; then if [ "${SKIPTMPCLEAN}" = "" ]; then
log_info_msg2 " /tmp" log_info_msg2 " /tmp"
cd /tmp && cd /tmp &&
find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1 find . -xdev -mindepth 1 ! -name lost+found -delete || failed=1
fi fi

View File

@ -32,7 +32,7 @@
# Native English speakers probably don't have /etc/sysconfig/console at all # Native English speakers probably don't have /etc/sysconfig/console at all
[ -r /etc/sysconfig/console ] && . /etc/sysconfig/console [ -r /etc/sysconfig/console ] && . /etc/sysconfig/console
is_true() is_true()
{ {
[ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ]
} }
@ -43,8 +43,8 @@ case "${1}" in
start) start)
# See if we need to do anything # See if we need to do anything
if [ -z "${KEYMAP}" ] && [ -z "${KEYMAP_CORRECTIONS}" ] && if [ -z "${KEYMAP}" ] && [ -z "${KEYMAP_CORRECTIONS}" ] &&
[ -z "${FONT}" ] && [ -z "${LEGACY_CHARSET}" ] && [ -z "${FONT}" ] && [ -z "${LEGACY_CHARSET}" ] &&
! is_true "${UNICODE}"; then ! is_true "${UNICODE}"; then
exit 0 exit 0
fi fi
@ -85,7 +85,7 @@ case "${1}" in
[ -z "${KEYMAP}" ] || [ -z "${KEYMAP}" ] ||
loadkeys ${KEYMAP} >/dev/null 2>&1 || loadkeys ${KEYMAP} >/dev/null 2>&1 ||
failed=1 failed=1
[ -z "${KEYMAP_CORRECTIONS}" ] || [ -z "${KEYMAP_CORRECTIONS}" ] ||
loadkeys ${KEYMAP_CORRECTIONS} >/dev/null 2>&1 || loadkeys ${KEYMAP_CORRECTIONS} >/dev/null 2>&1 ||
failed=1 failed=1
@ -97,16 +97,16 @@ case "${1}" in
# If any of the commands above failed, the trap at the # If any of the commands above failed, the trap at the
# top would set $failed to 1 # top would set $failed to 1
( exit $failed ) ( exit $failed )
evaluate_retval evaluate_retval
exit $failed exit $failed
;; ;;
*) *)
echo "Usage: ${0} {start}" echo "Usage: ${0} {start}"
exit 1 exit 1
;; ;;
esac esac
# End console # End console

View File

@ -37,7 +37,7 @@ case "${1}" in
[ -r /etc/sysconfig/modules ] || exit 0 [ -r /etc/sysconfig/modules ] || exit 0
egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0 egrep -qv '^($|#)' /etc/sysconfig/modules || exit 0
log_info_msg "Loading modules:" log_info_msg "Loading modules:"
# Only try to load modules if the user has actually given us # Only try to load modules if the user has actually given us
# some modules to load. # some modules to load.
@ -54,7 +54,7 @@ case "${1}" in
# Print the module name if successful, otherwise take note. # Print the module name if successful, otherwise take note.
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
log_info_msg2 " ${module}" log_info_msg2 " ${module}"
else else
failedmod="${failedmod} ${module}" failedmod="${failedmod} ${module}"
fi fi
@ -63,10 +63,10 @@ case "${1}" in
# Print a message about successfully loaded modules on the correct line. # Print a message about successfully loaded modules on the correct line.
log_success_msg2 log_success_msg2
# Print a failure message with a list of any modules that # Print a failure message with a list of any modules that
# may have failed to load. # may have failed to load.
if [ -n "${failedmod}" ]; then if [ -n "${failedmod}" ]; then
log_failure_msg "Failed to load modules:${failedmod}" log_failure_msg "Failed to load modules:${failedmod}"
exit 1 exit 1
fi fi
;; ;;

View File

@ -39,7 +39,7 @@ case "${1}" in
mkdir -p /run/lock /run/shm mkdir -p /run/lock /run/shm
chmod 1777 /run/shm /run/lock chmod 1777 /run/shm /run/lock
log_info_msg "Mounting virtual file systems: ${INFO}/run" log_info_msg "Mounting virtual file systems: ${INFO}/run"
if ! mountpoint /proc >/dev/null; then if ! mountpoint /proc >/dev/null; then
log_info_msg2 " ${INFO}/proc" log_info_msg2 " ${INFO}/proc"
@ -47,17 +47,17 @@ case "${1}" in
fi fi
if ! mountpoint /sys >/dev/null; then if ! mountpoint /sys >/dev/null; then
log_info_msg2 " ${INFO}/sys" log_info_msg2 " ${INFO}/sys"
mount -o nosuid,noexec,nodev /sys || failed=1 mount -o nosuid,noexec,nodev /sys || failed=1
fi fi
if ! mountpoint /dev >/dev/null; then if ! mountpoint /dev >/dev/null; then
log_info_msg2 " ${INFO}/dev" log_info_msg2 " ${INFO}/dev"
mount -o mode=0755,nosuid /dev || failed=1 mount -o mode=0755,nosuid /dev || failed=1
fi fi
ln -sfn /run/shm /dev/shm ln -sfn /run/shm /dev/shm
(exit ${failed}) (exit ${failed})
evaluate_retval evaluate_retval
exit $failed exit $failed

View File

@ -43,7 +43,7 @@ case "${1}" in
stop) stop)
# Unmount any network mounted file systems # Unmount any network mounted file systems
umount --all --force --types nfs,cifs,nfs4 umount --all --force --types nfs,cifs,nfs4
# Reverse list # Reverse list
net_files="" net_files=""

View File

@ -18,11 +18,11 @@ print_error_msg()
{ {
log_failure_msg log_failure_msg
# $i is set when called # $i is set when called
MSG="FAILURE:\n\nYou should not be reading this error message.\n\n" MSG="FAILURE:\n\nYou should not be reading this error message.\n\n"
MSG="${MSG}It means that an unforeseen error took place in\n" MSG="${MSG}It means that an unforeseen error took place in\n"
MSG="${MSG}${i},\n" MSG="${MSG}${i},\n"
MSG="${MSG}which exited with a return value of ${error_value}.\n" MSG="${MSG}which exited with a return value of ${error_value}.\n"
MSG="${MSG}If you're able to track this error down to a bug in one of\n" MSG="${MSG}If you're able to track this error down to a bug in one of\n"
MSG="${MSG}the files provided by the ${DISTRO_MINI} book,\n" MSG="${MSG}the files provided by the ${DISTRO_MINI} book,\n"
MSG="${MSG}please be so kind to inform us at ${DISTRO_CONTACT}.\n" MSG="${MSG}please be so kind to inform us at ${DISTRO_CONTACT}.\n"
@ -36,7 +36,7 @@ check_script_status()
{ {
# $i is set when called # $i is set when called
if [ ! -f ${i} ]; then if [ ! -f ${i} ]; then
log_warning_msg "${i} is not a valid symlink." log_warning_msg "${i} is not a valid symlink."
SCRIPT_STAT="1" SCRIPT_STAT="1"
fi fi
@ -102,16 +102,16 @@ previous=${PREVLEVEL}
[ "${previous}" == "" ] && previous=N [ "${previous}" == "" ] && previous=N
if [ ! -d /etc/rc.d/rc${runlevel}.d ]; then if [ ! -d /etc/rc.d/rc${runlevel}.d ]; then
log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n" log_info_msg "/etc/rc.d/rc${runlevel}.d does not exist.\n"
exit 1 exit 1
fi fi
if [ "$runlevel" == "6" -o "$runlevel" == "0" ]; then IPROMPT="no"; fi if [ "$runlevel" == "6" -o "$runlevel" == "0" ]; then IPROMPT="no"; fi
# Note: In ${LOGLEVEL:-7}, it is ':' 'dash' '7', not minus 7 # Note: In ${LOGLEVEL:-7}, it is ':' 'dash' '7', not minus 7
if [ "$runlevel" == "S" ]; then if [ "$runlevel" == "S" ]; then
[ -r /etc/sysconfig/console ] && source /etc/sysconfig/console [ -r /etc/sysconfig/console ] && source /etc/sysconfig/console
dmesg -n "${LOGLEVEL:-7}" dmesg -n "${LOGLEVEL:-7}"
fi fi
if [ "${IPROMPT}" == "yes" -a "${runlevel}" == "S" ]; then if [ "${IPROMPT}" == "yes" -a "${runlevel}" == "S" ]; then
@ -225,10 +225,10 @@ fi
# Copy the boot log on initial boot only # Copy the boot log on initial boot only
if [ "${previous}" == "N" -a "${runlevel}" != "S" ]; then if [ "${previous}" == "N" -a "${runlevel}" != "S" ]; then
cat $BOOTLOG >> /var/log/boot.log cat $BOOTLOG >> /var/log/boot.log
# Mark the end of boot # Mark the end of boot
echo "--------" >> /var/log/boot.log echo "--------" >> /var/log/boot.log
# Remove the temporary file # Remove the temporary file
rm -f $BOOTLOG 2> /dev/null rm -f $BOOTLOG 2> /dev/null
fi fi

View File

@ -13,7 +13,7 @@
######################################################################## ########################################################################
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: # Provides:
# Required-Start: # Required-Start:
# Should-Start: modules # Should-Start: modules
# Required-Stop: # Required-Stop:

View File

@ -48,7 +48,7 @@ case "${1}" in
;; ;;
status) status)
log_success_msg "Retrieving swap status." log_success_msg "Retrieving swap status."
swapon -s swapon -s
;; ;;

View File

@ -60,9 +60,9 @@ case "${1}" in
# If any LVM based partitions are on the system, ensure they # If any LVM based partitions are on the system, ensure they
# are activated so they can be used. # are activated so they can be used.
if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi if [ -x /sbin/vgchange ]; then /sbin/vgchange -a y >/dev/null; fi
log_success_msg2 log_success_msg2
;; ;;
*) *)

View File

@ -7,7 +7,7 @@
# Authors : Alexander E. Patrakov # Authors : Alexander E. Patrakov
# DJ Lucas - dj@linuxfromscratch.org # DJ Lucas - dj@linuxfromscratch.org
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
# Bryan Kadzban - # Bryan Kadzban -
# #
# Version : LFS 7.0 # Version : LFS 7.0
# #
@ -39,7 +39,7 @@ case "${1}" in
rundir=/run/udev rundir=/run/udev
# From Debian: "copy the rules generated before / was mounted # From Debian: "copy the rules generated before / was mounted
# read-write": # read-write":
for file in ${rundir}/tmp-rules--*; do for file in ${rundir}/tmp-rules--*; do
dest=${file##*tmp-rules--} dest=${file##*tmp-rules--}
[ "$dest" = '*' ] && break [ "$dest" = '*' ] && break
@ -47,7 +47,7 @@ case "${1}" in
rm -f $file rm -f $file
done done
# Re-trigger the uevents that may have failed, # Re-trigger the uevents that may have failed,
# in hope they will succeed now # in hope they will succeed now
/bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \ /bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \
while read line ; do while read line ; do

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
######################################################################## ########################################################################
# #
# Begin /lib/lsb/init-funtions # Begin /lib/lsb/init-funtions
# #
# Description : Run Level Control Functions # Description : Run Level Control Functions
@ -154,13 +154,13 @@ start_daemon()
retval="${?}" retval="${?}"
fi fi
# Return a value ONLY # Return a value ONLY
# It is the init script's (or distribution's functions) responsibilty # It is the init script's (or distribution's functions) responsibilty
# to log messages! # to log messages!
case "${retval}" in case "${retval}" in
0) 0)
# Program is already running correctly, this is a # Program is already running correctly, this is a
# successful start. # successful start.
return 0 return 0
;; ;;
@ -230,7 +230,7 @@ killproc()
pidfile="${2}" pidfile="${2}"
shift 2 shift 2
;; ;;
*) *)
program="${1}" program="${1}"
if [ -n "${2}" ]; then if [ -n "${2}" ]; then
@ -243,9 +243,9 @@ killproc()
# Error on additional arguments # Error on additional arguments
if [ -n "${3}" ]; then if [ -n "${3}" ]; then
return 2 return 2
else else
break break
fi fi
;; ;;
esac esac
done done
@ -321,7 +321,7 @@ killproc()
if [ "${?}" -eq "0" ]; then # Signal is used to terminate the program if [ "${?}" -eq "0" ]; then # Signal is used to terminate the program
# Account for empty pidlist (pid file still exists and no # Account for empty pidlist (pid file still exists and no
# signal was given) # signal was given)
if [ "${pidlist}" != "" ]; then if [ "${pidlist}" != "" ]; then
@ -336,7 +336,7 @@ killproc()
else else
kill "${signal}" "${pid}" 2> /dev/null kill "${signal}" "${pid}" 2> /dev/null
# Wait up to ${delay}/10 seconds to for "${pid}" to # Wait up to ${delay}/10 seconds to for "${pid}" to
# terminate in 10ths of a second # terminate in 10ths of a second
while [ "${delay}" -ne "0" ]; do while [ "${delay}" -ne "0" ]; do
@ -433,7 +433,7 @@ pidofproc()
# Get the program's basename # Get the program's basename
prefix=`echo "${program}" | sed 's/[^/]*$//'` prefix=`echo "${program}" | sed 's/[^/]*$//'`
if [ -z "${prefix}" ]; then if [ -z "${prefix}" ]; then
progname="${program}" progname="${program}"
else else
progname=`echo "${program}" | sed "s@${prefix}@@"` progname=`echo "${program}" | sed "s@${prefix}@@"`
@ -583,7 +583,7 @@ log_success_msg()
timespec timespec
/bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG} /bin/echo -e "${STAMP} ${logmessage} OK" >> ${BOOTLOG}
return 0 return 0
} }
@ -593,7 +593,7 @@ log_success_msg2()
/bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}" /bin/echo -e "${CURS_ZERO}${SUCCESS_PREFIX}${SET_COL}${SUCCESS_SUFFIX}"
echo " OK" >> ${BOOTLOG} echo " OK" >> ${BOOTLOG}
return 0 return 0
} }
@ -618,7 +618,7 @@ log_failure_msg()
timespec timespec
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
/bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG} /bin/echo -e "${STAMP} ${logmessage} FAIL" >> ${BOOTLOG}
return 0 return 0
} }
@ -628,7 +628,7 @@ log_failure_msg2()
/bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}" /bin/echo -e "${CURS_ZERO}${FAILURE_PREFIX}${SET_COL}${FAILURE_SUFFIX}"
echo "FAIL" >> ${BOOTLOG} echo "FAIL" >> ${BOOTLOG}
return 0 return 0
} }
@ -650,7 +650,7 @@ log_warning_msg()
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
timespec timespec
/bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG} /bin/echo -e "${STAMP} ${logmessage} WARN" >> ${BOOTLOG}
return 0 return 0
} }
@ -662,7 +662,7 @@ log_skip_msg()
# Strip non-printable characters from log file # Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
/bin/echo "SKIP" >> ${BOOTLOG} /bin/echo "SKIP" >> ${BOOTLOG}
return 0 return 0
} }
@ -683,7 +683,7 @@ log_info_msg()
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
timespec timespec
/bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG} /bin/echo -n -e "${STAMP} ${logmessage}" >> ${BOOTLOG}
return 0 return 0
} }
@ -694,7 +694,7 @@ log_info_msg2()
# Strip non-printable characters from log file # Strip non-printable characters from log file
logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'` logmessage=`echo "${@}" | sed 's/\\\033[^a-zA-Z]*.//g'`
/bin/echo -n -e "${logmessage}" >> ${BOOTLOG} /bin/echo -n -e "${logmessage}" >> ${BOOTLOG}
return 0 return 0
} }

View File

@ -56,10 +56,10 @@ if [ -n "${need_ip}" ]; then
fi fi
if [ -z "${PREFIX}" ]; then if [ -z "${PREFIX}" ]; then
log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue." log_failure_msg "PREFIX variable missing from ${IFCONFIG}, cannot continue."
exit 1 exit 1
fi fi
args="${args} ${IP}/${PREFIX}" args="${args} ${IP}/${PREFIX}"
desc="${desc}${IP}/${PREFIX}" desc="${desc}${IP}/${PREFIX}"
fi fi
@ -82,13 +82,13 @@ case "${2}" in
ip route add ${args} dev ${1} ip route add ${args} dev ${1}
evaluate_retval evaluate_retval
;; ;;
down) down)
log_info_msg "Removing '${desc}' route from the ${1} interface..." log_info_msg "Removing '${desc}' route from the ${1} interface..."
ip route del ${args} dev ${1} ip route del ${args} dev ${1}
evaluate_retval evaluate_retval
;; ;;
*) *)
echo "Usage: ${0} [interface] {up|down}" echo "Usage: ${0} [interface] {up|down}"
exit 1 exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
# Begin /sbin/ifdown # Begin /sbin/ifdown
# #
@ -30,7 +30,7 @@ while [ $# -gt 0 ]; do
-*) echo "ifup: ${1}: invalid option" >&2 -*) echo "ifup: ${1}: invalid option" >&2
echo "${USAGE}" >& 2 echo "${USAGE}" >& 2
exit 2 ;; exit 2 ;;
*) break ;; *) break ;;
esac esac
done done
@ -53,7 +53,7 @@ file=/etc/sysconfig/ifconfig.${1}
# Skip backup files # Skip backup files
[ "${file}" = "${file%""~""}" ] || exit 0 [ "${file}" = "${file%""~""}" ] || exit 0
. /lib/lsb/init-functions . /lib/lsb/init-functions
if [ ! -r "${file}" ]; then if [ ! -r "${file}" ]; then
log_warning_msg "${file} is missing or cannot be accessed." log_warning_msg "${file} is missing or cannot be accessed."

View File

@ -48,11 +48,11 @@ while [ $# -gt 0 ]; do
--help | -h) help="y"; break ;; --help | -h) help="y"; break ;;
--version | -V) echo "${VERSTR}"; exit 0 ;; --version | -V) echo "${VERSTR}"; exit 0 ;;
-*) echo "ifup: ${1}: invalid option" >&2 -*) echo "ifup: ${1}: invalid option" >&2
echo "${USAGE}" >& 2 echo "${USAGE}" >& 2
exit 2 ;; exit 2 ;;
*) break ;; *) break ;;
esac esac
done done
@ -102,7 +102,7 @@ fi
for S in ${SERVICE}; do for S in ${SERVICE}; do
if [ ! -x "/lib/services/${S}" ]; then if [ ! -x "/lib/services/${S}" ]; then
MSG="\nUnable to process ${file}. Either " MSG="\nUnable to process ${file}. Either "
MSG="${MSG}the SERVICE '${S} was not present " MSG="${MSG}the SERVICE '${S} was not present "
MSG="${MSG}or cannot be executed." MSG="${MSG}or cannot be executed."
log_failure_msg "$MSG" log_failure_msg "$MSG"
@ -113,7 +113,7 @@ done
if [ "${SERVICE}" = "wpa" ]; then log_success_msg; fi if [ "${SERVICE}" = "wpa" ]; then log_success_msg; fi
# Create/configure the interface # Create/configure the interface
for S in ${SERVICE}; do for S in ${SERVICE}; do
IFCONFIG=${file} /lib/services/${S} ${IFACE} up IFCONFIG=${file} /lib/services/${S} ${IFACE} up
done done
@ -128,13 +128,13 @@ for I in $INTERFACE_COMPONENTS; do up $I; done
# Set MTU if requested. Check if MTU has a "good" value. # Set MTU if requested. Check if MTU has a "good" value.
if test -n "${MTU}"; then if test -n "${MTU}"; then
if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then if [[ ${MTU} =~ ^[0-9]+$ ]] && [[ $MTU -ge 68 ]] ; then
for I in $IFACE $INTERFACE_COMPONENTS; do for I in $IFACE $INTERFACE_COMPONENTS; do
ip link set dev $I mtu $MTU; ip link set dev $I mtu $MTU;
done done
else else
log_info_msg2 "Invalid MTU $MTU" log_info_msg2 "Invalid MTU $MTU"
fi fi
fi fi
# Set the route default gateway if requested # Set the route default gateway if requested
if [ -n "${GATEWAY}" ]; then if [ -n "${GATEWAY}" ]; then

View File

@ -14,9 +14,9 @@ SYNOPSIS
ifdown -V|--version ifdown -V|--version
DESCRIPTION DESCRIPTION
The ifup and ifdown commands may be used to configure The ifup and ifdown commands may be used to configure
(or, respectively, deconfigure) a network interface based (or, respectively, deconfigure) a network interface based
on interface definitions in the file on interface definitions in the file
/etc/sysconfig/ifconfig.IFACE. /etc/sysconfig/ifconfig.IFACE.
OPTIONS OPTIONS
@ -30,7 +30,7 @@ OPTIONS
EXAMPLES EXAMPLES
ifup eth0 ifup eth0
Bring up the interface defined in the file Bring up the interface defined in the file
/etc/sysconfig/ifconfig.eth0 /etc/sysconfig/ifconfig.eth0
ONBOOT=no ONBOOT=no
@ -49,21 +49,21 @@ EXAMPLES
IFACE=eth0 IFACE=eth0
LABEL=eth0:2 LABEL=eth0:2
SERVICE=dhcpcd SERVICE=dhcpcd
DHCP_START="--waitip" DHCP_START="--waitip"
DHCP_STOP="-k" DHCP_STOP="-k"
# Set PRINTIP="yes" to have the script print the DHCP IP address # Set PRINTIP="yes" to have the script print the DHCP IP address
PRINTIP="yes" PRINTIP="yes"
# Set PRINTALL="yes" to print the DHCP assigned values for # Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. # IP, SM, DG, and 1st NS.
PRINTALL="no" PRINTALL="no"
ifup br0 ifup br0
Bring up the interface defined in the file Bring up the interface defined in the file
/etc/sysconfig/ifconfig.br0 /etc/sysconfig/ifconfig.br0
ONBOOT=yes ONBOOT=yes
IFACE=br0 IFACE=br0
SERVICE="bridge ipv4-static" SERVICE="bridge ipv4-static"
@ -77,65 +77,65 @@ EXAMPLES
NOTES NOTES
The program does not configure network interfaces direct- The program does not configure network interfaces direct-
ly. It runs scripts defined by the SERVICE variable in ly. It runs scripts defined by the SERVICE variable in
the network configuration file. the network configuration file.
The configuration files must have the following environ- The configuration files must have the following environ-
ment variables set: ment variables set:
IFACE - The interface to configure, e.g. eth0. It must IFACE - The interface to configure, e.g. eth0. It must
be available in /sys/class/net. be available in /sys/class/net.
SERVICE - The service script to run to bring up the inter- SERVICE - The service script to run to bring up the inter-
face. Standard services are ipv4-static and face. Standard services are ipv4-static and
ipv4-static-route. Other services such as dhcp ipv4-static-route. Other services such as dhcp
or bridge may be installed. This value may or bridge may be installed. This value may
be a list of services when the interface is a be a list of services when the interface is a
compound device such as a bridge. compound device such as a bridge.
ONBOOT - If set to 'yes', the specified interface is ONBOOT - If set to 'yes', the specified interface is
configured by the netowrk boot script. configured by the netowrk boot script.
GATEWAY - The default IP address to use for routing if GATEWAY - The default IP address to use for routing if
the destination IP address is not in a static the destination IP address is not in a static
route or on a local network, e.g., 192.168.1.1. route or on a local network, e.g., 192.168.1.1.
For secondary IP addresses on an interface, this For secondary IP addresses on an interface, this
parameter should not be specified. If the service parameter should not be specified. If the service
is ipv4-static-route, this parameter must NOT is ipv4-static-route, this parameter must NOT
be set. be set.
STATIC_GATEWAY - The default IP address to use for routing STATIC_GATEWAY - The default IP address to use for routing
when setting a static routing address. when setting a static routing address.
INTERFACE_COMPONENTS - A list of component interfaces INTERFACE_COMPONENTS - A list of component interfaces
only needed for a compound device such as a bridge. only needed for a compound device such as a bridge.
This list is normally a single value, e.g. eth0, This list is normally a single value, e.g. eth0,
for use with a virtual host such as kvm. for use with a virtual host such as kvm.
Other paramters that are service specific include: Other paramters that are service specific include:
ipv4-static ipv4-static
IP - The IP address of the interface, IP - The IP address of the interface,
e.g. 192.168.1.2. e.g. 192.168.1.2.
PREFIX - The number of bits that specify the network PREFIX - The number of bits that specify the network
number of the interface. The default, if not number of the interface. The default, if not
specified, is 24. specified, is 24.
LABEL - The label to be assigned to the interface. LABEL - The label to be assigned to the interface.
This is normally specified for assigning This is normally specified for assigning
additional IP addresses to a network additional IP addresses to a network
device. Example: eth0:2 (optional) device. Example: eth0:2 (optional)
BROADCAST - The brodcast address for this interface, BROADCAST - The brodcast address for this interface,
e.g 192.168.1.255. If not specified, e.g 192.168.1.255. If not specified,
the broadcast address will be calculated the broadcast address will be calculated
from the IP and PREFIX. from the IP and PREFIX.
ipv4-static-route ipv4-static-route
TYPE - The type of route, typically 'default', TYPE - The type of route, typically 'default',
'network', 'or host'. 'network', 'or host'.
IP - The IP address for a network or host, if the IP - The IP address for a network or host, if the
@ -145,7 +145,7 @@ NOTES
STATIC_GATEWAY - The IP address for a network route. STATIC_GATEWAY - The IP address for a network route.
SOURCE - The source IP address to prefer when sending SOURCE - The source IP address to prefer when sending
to the destinations covered by the specified to the destinations covered by the specified
route. (optional) route. (optional)
@ -154,7 +154,7 @@ NOTES
DHCP_START - Optional parameters to pass to the dhcp client DHCP_START - Optional parameters to pass to the dhcp client
at startup. at startup.
DHCP_STOP - Optional paremeters to pass to the dhcp client DHCP_STOP - Optional paremeters to pass to the dhcp client
at shutdown. at shutdown.
PRINTIP - Flag to print the dhcp address to stdout PRINTIP - Flag to print the dhcp address to stdout
@ -164,18 +164,18 @@ NOTES
bridge bridge
IP_FORWARD - An optional flag to enable the system to forward IP_FORWARD - An optional flag to enable the system to forward
inbound IP packets received by one interface to inbound IP packets received by one interface to
another outbound interface. another outbound interface.
STP - Set bridge spanning tree protocol. Default is no. STP - Set bridge spanning tree protocol. Default is no.
FILES FILES
/etc/sysconfig/ifconfig.* /etc/sysconfig/ifconfig.*
definitions of network interfaces definitions of network interfaces
AUTHORS AUTHORS
The ifup/ifdown suite was written by Nathan Coulson The ifup/ifdown suite was written by Nathan Coulson
<nathan@linuxfromscratch.org> and Kevin P. Fleming <nathan@linuxfromscratch.org> and Kevin P. Fleming
<kpfleming@linuxfromscratch.org> <kpfleming@linuxfromscratch.org>
and updated by Bruce Dubbs <bdubbs@linuxfromscratch>. and updated by Bruce Dubbs <bdubbs@linuxfromscratch>.

View File

@ -11,7 +11,7 @@
# if type is equal to "file" or "dir" # if type is equal to "file" or "dir"
# <filename> <type> <permissions> <user> <group> # <filename> <type> <permissions> <user> <group>
# if type is equal to "dev" # if type is equal to "dev"
# <filename> <type> <permissions> <user> <group> <devtype> # <filename> <type> <permissions> <user> <group> <devtype>
# <major> <minor> # <major> <minor>
# #
# <filename> is the name of the file which is to be created # <filename> is the name of the file which is to be created
@ -22,9 +22,9 @@
# <devtype> is either block, char or pipe # <devtype> is either block, char or pipe
# block creates a block device # block creates a block device
# char creates a character deivce # char creates a character deivce
# pipe creates a pipe, this will ignore the <major> and # pipe creates a pipe, this will ignore the <major> and
# <minor> fields # <minor> fields
# <major> and <minor> are the major and minor numbers used for # <major> and <minor> are the major and minor numbers used for
# the device. # the device.
######################################################################## ########################################################################

View File

@ -40,834 +40,78 @@
appropriate for the entry or if needed the entire day's listitem. appropriate for the entry or if needed the entire day's listitem.
--> -->
<listitem> <listitem>
<para>2021-08-25</para> <para>2021-09-15</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>[xry111] - Update to man-pages-5.13. Fixes <para>[bdubbs] - Ensure tcl documentation instructions are present. Fixes
<ulink url="&lfs-ticket-root;4915">#4915</ulink>.</para> <ulink url="&lfs-ticket-root;4923">#4923</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to Python3-3.9.7. Fixes
<ulink url="&lfs-ticket-root;4916">#4916</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.14.3. Fixes
<ulink url="&lfs-ticket-root;4913">#4913</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libcap-2.57. Fixes
<ulink url="&lfs-ticket-root;4912">#4912</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to iproute2-5.14.0. Fixes
<ulink url="&lfs-ticket-root;4917">#4917</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to inetutils-2.2. Fixes
<ulink url="&lfs-ticket-root;4918">#4918</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to gzip-1.11. Fixes
<ulink url="&lfs-ticket-root;4920">#4920</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to gdbm-1.21. Fixes
<ulink url="&lfs-ticket-root;4919">#4919</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bison-3.8.1. Fixes
<ulink url="&lfs-ticket-root;4921">#4921</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bc-5.0.2. Fixes
<ulink url="&lfs-ticket-root;4908">#4905</ulink>.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>
<listitem> <listitem>
<para>2021-08-25</para> <para>2021-09-08</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>[bdubbs] - LFS-11.0-rc3 released.</para> <para>[renodr] - Fix regressions in File that result in improper
</listitem> detection of text and XZ files.</para>
<listitem>
<para>[bdubbs] - Update to e2fsprogs-1.46.4. Fixes
<ulink url="&lfs-ticket-root;4910">#4910</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to meson-0.59.1. Fixes
<ulink url="&lfs-ticket-root;4909">#4909</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to util-linux 2.37.2. Fixes
<ulink url="&lfs-ticket-root;4908">#4908</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.13.12. Fixes
<ulink url="&lfs-ticket-root;4907">#4907</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libcap-2.53. Fixes
<ulink url="&lfs-ticket-root;4906">#4906</ulink>.</para>
</listitem>
<listitem>
<para>[xry111] - Update to openssl-1.1.1l (security fixes). Fixes
<ulink url="&lfs-ticket-root;4911">#4911</ulink>.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>
<listitem> <listitem>
<para>2021-08-20</para> <para>2021-09-06</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>[bdubbs] - Add a sed to glibc in Chapter 8 to fix a <para>[bdubbs] - Text clarifications in the backup/restore section
critical security issue.</para> of Chapter 7. Thanks to Kevin Buckley for the patch.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>
<listitem> <listitem>
<para>2021-08-18</para> <para>2021-09-01</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>[bdubbs] - Eliminate an instruction to remove a test <para>[bdubbs] - LFS-11.0 released.</para>
in bunutils that no longer fails.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</listitem> </listitem>
<listitem>
<para>2021-08-16</para>
<itemizedlist>
<listitem>
<para>[dj] - add p11-kit to dependencies list for systemd.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-15</para>
<itemizedlist>
<listitem>
<para>[renodr] - LFS-11.0-rc1 released.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-14</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to grep-3.7. Fixes
<ulink url="&lfs-ticket-root;4901">#4901</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-13</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to linux-5.13.10. Fixes
<ulink url="&lfs-ticket-root;4904">#4904</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bc-5.0.0. Fixes
<ulink url="&lfs-ticket-root;4903">#4903</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to vim-8.2.3337. Addresses
<ulink url="&lfs-ticket-root;4521">#4521</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Add binutils-2.37 upstream patch.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-08</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to linux-5.13.9. Fixes
<ulink url="&lfs-ticket-root;4900">#4900</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libffi-3.4.2. Fixes
<ulink url="&lfs-ticket-root;4902">#4902</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-06</para>
<itemizedlist>
<listitem>
<para>[xry111] - Fix
<filename class="libraryfile">libasan.a</filename> building
GCC with Glibc-2.34. Addresses
<ulink url="https://wiki.linuxfromscratch.org/blfs/ticket/15350">
BLFS #15350</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-02</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to glibc-2.34. Fixes
<ulink url="&lfs-ticket-root;4897">#4897</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to diffutils-3.8. Fixes
<ulink url="&lfs-ticket-root;4898">#4898</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libcap-2.52. Fixes
<ulink url="&lfs-ticket-root;4899">#4899</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-08-01</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Remove unneeded sed commands from automake and
coreutils. Fixes
<ulink url="&lfs-ticket-root;4895">#4895</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.13.7. Fixes
<ulink url="&lfs-ticket-root;4893">#4893</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to e2fsprogs-1.46.3. Fixes
<ulink url="&lfs-ticket-root;4896">#4896</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-27</para>
<itemizedlist>
<listitem>
<para>[xry111] - Update to GCC-11.2.0. Fixes
<ulink url="&lfs-ticket-root;4883">#4883</ulink>.</para>
</listitem>
<listitem>
<para>[xry111] - Update to inetutils-2.1. Fixes
<ulink url="&lfs-ticket-root;4892">#4892</ulink>.</para>
</listitem>
<listitem>
<para>[xry111] - Update to automake-1.16.4. Fixes
<ulink url="&lfs-ticket-root;4894">#4894</ulink>.</para>
</listitem>
<listitem>
<para>[xry111] - Always use --strip-unneeded for stripping.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-27</para>
<itemizedlist>
<listitem>
<para>[xry111] - Use workaround for Glibc NSS modules during
stripping, to prevent bash from crash.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-26</para>
<itemizedlist>
<listitem>
<para>[thomas] - Fix a programming error in shadow-4.9</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-25</para>
<itemizedlist>
<listitem>
<para>[xry111] - (Hopefully) complete stripping workaround.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-25</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Add workaround to strip libraries
correctly.</para>
</listitem>
<listitem>
<para>[xry111] - Add workaround to install Binutils-2.37 man pages
correctly.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to shadow-4.9. Fixes
<ulink url="&lfs-ticket-root;4891">#4891</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to util-linux 2.37.1. Fixes
<ulink url="&lfs-ticket-root;4890">#4890</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-23</para>
<itemizedlist>
<listitem revision="systemd">
<para>[renodr] - Guard systemd against CVE-2021-33910. Fixes
<ulink url="&lfs-ticket-root;4889">#4889</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to meson-0.59.0. Fixes
<ulink url="&lfs-ticket-root;4888">#4888</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to binutils-2.37. Fixes
<ulink url="&lfs-ticket-root;4887">#4887</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to less-590. Fixes
<ulink url="&lfs-ticket-root;4884">#4884</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-22</para>
<itemizedlist>
<listitem>
<para>[dj] - Correct page IDs in Chapter 08 dejagnu, expect, and
tcl.</para>
</listitem>
<listitem>
<para>[dj] - Ensure that glibc installs ldconfig and sln to
<filename class="directory">/usr/sbin</filename>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-20</para>
<itemizedlist>
<listitem>
<para>[ken] - Update to linux-5.13.4 (security fix). Fixes
<ulink url="&lfs-ticket-root;4886">#4886</ulink>.</para>
</listitem>
<listitem>
<para>[xry111] - Use a fixed, non-zero UID for
<systemitem class="username">tester</systemitem> user, and spawn a
new pseudoterminal to satisfy bash testsuite.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-19</para>
<itemizedlist>
<listitem>
<para>[renodr] - Add text about security advisories to the
Errata page.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-17</para>
<itemizedlist>
<listitem>
<para>[ken] - Fix test failures in perl-5.34.0 by building less before
perl and by patching perl for a problem highlighted by gdbm-1.20. Fixes
<ulink url="&lfs-ticket-root;4885">#4885</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-15</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Remove modifications to m4 that are no longer needed.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-08</para>
<itemizedlist>
<listitem revision="systemd">
<para>[renodr] - Added Jinja2-3.0.1.</para>
</listitem>
<listitem revision="systemd">
<para>[renodr] - Added MarkupSafe-2.0.1.</para>
</listitem>
<listitem>
<para>[renodr] - Update to texinfo-6.8. Fixes
<ulink url="&lfs-ticket-root;4880">#4880</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to iproute2-5.13.0. Fixes
<ulink url="&lfs-ticket-root;4879">#4879</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to Python-3.9.6 (Security Update). Fixes
<ulink url="&lfs-ticket-root;4878">#4878</ulink>.</para>
</listitem>
<listitem revision="systemd">
<para>[renodr] - Update to systemd-249 (Security Update). Fixes
<ulink url="&lfs-ticket-root;4882">#4882</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to Linux-5.13.1. Fixes
<ulink url="&lfs-ticket-root;4873">#4873</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-07-01</para>
<itemizedlist>
<listitem>
<para>[ken] - Patch gcc to fix some regressions (will be
needed to build firefox-91ESR in BLFS) and to allow it to
build against linux-5.13.0 kernel headers. Fixes
<ulink url="&lfs-ticket-root;4875">#4875</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-06-28</para>
<itemizedlist>
<listitem>
<para>[ken] - If installing individual locales, add 9 more
used by libstdc++-v3 tests. Fixes
<ulink url="&lfs-ticket-root;4877">#4877</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-06-27</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to bash-5.1.8. Fixes
<ulink url="&lfs-ticket-root;4869">#4869</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to dejagnu-1.6.3. Fixes
<ulink url="&lfs-ticket-root;4871">#4871</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to gdbm-1.20. Fixes
<ulink url="&lfs-ticket-root;4872">#4872</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libcap-2.51. Fixes
<ulink url="&lfs-ticket-root;4874">#4874</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to man-pages-5.1. Fixes
<ulink url="&lfs-ticket-root;4876">#4876</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-06-18</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Ensure libcap installs capsh.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-06-15</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to iana-etc-20210611. Addresses
<ulink url="&lfs-ticket-root;4722">#4722</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to vim-8.2.3001. Addresses
<ulink url="&lfs-ticket-root;4500">#4500</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to util-linux-2.37. Fixes
<ulink url="&lfs-ticket-root;4865">#4865</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to meson-0.58.1. Fixes
<ulink url="&lfs-ticket-root;4867">#4867</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.12.10. Fixes
<ulink url="&lfs-ticket-root;4857">#4866</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to m4-1.4.19. Fixes
<ulink url="&lfs-ticket-root;4864">#4864</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to grub-2.06. Fixes
<ulink url="&lfs-ticket-root;4868">#4868</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-06-09</para>
<itemizedlist>
<listitem>
<para>[ken] - For consistency, make the cpp link in /usr/lib.
</para>
</listitem>
<listitem>
<para>[ken] - Install iproute2 programs in /usr/sbin for
consistency.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision="sysv">
<para>2021-06-08</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Make shutting down the netwrok more robust.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision="sysv">
<para>2021-06-02</para>
<itemizedlist>
<listitem>
<para>[thomas] - Tweak sendsignal bootscript to avoid
killing mdmod (if active).</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-05-31</para>
<itemizedlist>
<listitem>
<para>[ken] - Update to linux-5.12.8 (security fix). Fixes
<ulink url="&lfs-ticket-root;4863">#4863</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-05-28</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to iana-etc-20210526. Addresses
<ulink url="&lfs-ticket-root;4722">#4722</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to vim-8.2.2890. Addresses
<ulink url="&lfs-ticket-root;4500">#4500</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to zstd-1.5.0. Fixes
<ulink url="&lfs-ticket-root;4858">#4858</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to perl-5.34.0. Fixes
<ulink url="&lfs-ticket-root;4860">#4860</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.12.7. Fixes
<ulink url="&lfs-ticket-root;4857">#4857</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libcap-2.50. Fixes
<ulink url="&lfs-ticket-root;4862">#4862</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to kmod-29. Fixes
<ulink url="&lfs-ticket-root;4859">#4859</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to expat-2.4.1. Fixes
<ulink url="&lfs-ticket-root;4861">#4861</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to elfutils-0.185. Fixes
<ulink url="&lfs-ticket-root;4855">#4855</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bc-4.0.2. Fixes
<ulink url="&lfs-ticket-root;4855">#4855</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-05-26</para>
<itemizedlist>
<listitem>
<para>[thomas] - Remove obsolete DOCDIR option from iproute2 install command.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-05-17</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Tweak install directories for eudev and e2fsprogs.
Thanks to Ryan Marsaw for the report.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-05-14</para>
<itemizedlist>
<listitem>
<para>[ken] - Add a Note about upgrading in OpenSSL.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-05-12</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Removed instructions for running tests
in Python due to an indefinite hang in the partial
LFS envrionment.</para>
</listitem>
<listitem>
<para>[renodr] - Moved LFS to a merged-/usr configuration. Thanks
goes to Xi Ruoyao for doing almost all of the work. Fixes
<ulink url="&lfs-ticket-root;4848">#4848</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to gcc-11.1.0. Fixes
<ulink url="&lfs-ticket-root;4847">#4847</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Fix a FTBFS when building glibc-2.33 with
gcc-11.1.0.</para>
</listitem>
<listitem revision="systemd">
<para>[renodr] - Update to systemd-248. Fixes
<ulink url="&lfs-ticket-root;4841">#4841</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to iproute2-5.12.0. Fixes
<ulink url="&lfs-ticket-root;4852">#4852</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to Python-3.9.5. Fixes
<ulink url="&lfs-ticket-root;4854">#4854</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to meson-0.58.0. Fixes
<ulink url="&lfs-ticket-root;4853">#4853</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to linux-5.12.2. Fixes
<ulink url="&lfs-ticket-root;4840">#4840</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-04-28</para>
<itemizedlist>
<listitem revision="systemd">
<para>[renodr] - Fix building systemd with Linux-API-Headers 5.11.14
and higher, as well as with meson-0.57.2. Fixes
<ulink url="&lfs-ticket-root;4851">#4851</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Add manual locales needed for tests
if using alternate locale installation instructions. Fixes
<ulink url="&lfs-ticket-root;4844">#4844</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Minor changes to boot scripts. Fixes
<ulink url="&lfs-ticket-root;4842">#4842</ulink>.
Thanks to Scott Andrews for the report.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-04-26</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to vim-8.2.2812. Addresses
<ulink url="&lfs-ticket-root;4500">#4500</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to iana-etc-20210407. Addresses
<ulink url="&lfs-ticket-root;4722">#4722</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to Python3-3.9.4. Fixes
<ulink url="&lfs-ticket-root;4843">#4843</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to meson-0.57.2. Fixes
<ulink url="&lfs-ticket-root;4846">#4846</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.11.16. Addresses
<ulink url="&lfs-ticket-root;4840">#4840</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to less-581. Fixes
<ulink url="&lfs-ticket-root;4849">#4849</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to file-5.40. Fixes
<ulink url="&lfs-ticket-root;4839">#4839</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bc-4.0.1. Fixes
<ulink url="&lfs-ticket-root;4845">#4845</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-04-22</para>
<itemizedlist>
<listitem>
<para>[xry111] - Revert 2772bb9c, as the proposed fix in it is
rejected by Python maintainers explicitly.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-04-06</para>
<itemizedlist>
<listitem>
<para>The XML source code of this book is migrated from SVN
to Git.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-03-26</para>
<itemizedlist>
<listitem>
<para>[renodr] - Update to openssl-1.1.1k (Security Update). Fixes
<ulink url="&lfs-ticket-root;4838">#4838</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to attr-2.5.1. Fixes
<ulink url="&lfs-ticket-root;4833">#4833</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to linux-5.11.10. Fixes
<ulink url="&lfs-ticket-root;4834">#4834</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to bc-3.3.4. Fixes
<ulink url="&lfs-ticket-root;4835">#4835</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to man-pages-5.11. Fixes
<ulink url="&lfs-ticket-root;4836">#4836</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to expat-2.3.0. Fixes
<ulink url="&lfs-ticket-root;4837">#4837</ulink>.</para>
</listitem>
<listitem>
<para>[renodr] - Update to acl-2.3.1. Fixes
<ulink url="&lfs-ticket-root;4832">#4832</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-03-17</para>
<itemizedlist>
<listitem>
<para>[xry111] - Use <option>-j1</option> for Binutils
installation. Thanks report from Hans Meier.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-03-15</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Update to vim-8.2.2604. Addreses
<ulink url="&lfs-ticket-root;4500">#4500</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to iana-etc-20210304. Addreses
<ulink url="&lfs-ticket-root;4722">#4722</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to zstd-1.4.9. Fixes
<ulink url="&lfs-ticket-root;4827">#4827</ulink>.</para>
</listitem>
<listitem revision="sysv">
<para>[bdubbs] - Update to sysvinit-2.99. Fixes
<ulink url="&lfs-ticket-root;4822">#4822</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to linux-5.11.6. Fixes
<ulink url="&lfs-ticket-root;4824">#4824</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to libcap-2.49. Fixes
<ulink url="&lfs-ticket-root;4831">#4831</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to iproute2-5.11.0. Fixes
<ulink url="&lfs-ticket-root;4823">#4823</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to e2fsprogs-1.46.2. Fixes
<ulink url="&lfs-ticket-root;4826">#4826</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bison-3.7.6. Fixes
<ulink url="&lfs-ticket-root;4828">#4828</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bc-3.3.3. Fixes
<ulink url="&lfs-ticket-root;4825">#4825</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to attr-2.5.0. Fixes
<ulink url="&lfs-ticket-root;4830">#4830</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to acl-2.3.0. Fixes
<ulink url="&lfs-ticket-root;4829">#4829</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision="systemd">
<para>2021-03-05</para>
<itemizedlist>
<listitem>
<para>[xry111] - Simplify the installation of systemd man pages.
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision="systemd">
<para>2021-03-04</para>
<itemizedlist>
<listitem>
<para>[renodr] - Patch systemd-247 so that it will function with
Linux-5.11 API headers.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-03-02</para>
<itemizedlist>
<listitem>
<para>[pierre] - Fix a header file for python, so that
<command>#include &lt;python&python-minor;/Python.h&gt;</command>
works.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2021-03-01</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - LFS-10.1 released.</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist> </itemizedlist>
</sect1> </sect1>

View File

@ -30,28 +30,28 @@
<!--<listitem> <!--<listitem>
<para>None</para> <para>None</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Acl-&acl-version;</para> <para>Acl-&acl-version;</para>
</listitem> </listitem>-->
<listitem> <!--<listitem>
<para>Attr-&attr-version;</para> <para>Attr-&attr-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Autoconf-&autoconf-version;</para> <para>Autoconf-&autoconf-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Automake-&automake-version;</para> <para>Automake-&automake-version;</para>
</listitem> </listitem>-->
<listitem> <!--<listitem>
<para>Bash &bash-version;</para> <para>Bash &bash-version;</para>
</listitem> </listitem>-->
<listitem> <listitem>
<para>Bc &bc-version;</para> <para>Bc &bc-version;</para>
</listitem> </listitem>
<listitem> <!--<listitem>
<para>Binutils-&binutils-version;</para> <para>Binutils-&binutils-version;</para>
</listitem> </listitem>-->
<listitem> <listitem>
<para>Bison-&bison-version;</para> <para>Bison-&bison-version;</para>
</listitem> </listitem>
<!--<listitem> <!--<listitem>
@ -63,30 +63,30 @@
<!--<listitem> <!--<listitem>
<para>Coreutils-&coreutils-version;</para> <para>Coreutils-&coreutils-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>DejaGNU-&dejagnu-version;</para> <para>DejaGNU-&dejagnu-version;</para>
</listitem> </listitem>-->
<!--<listitem revision="systemd"> <!--<listitem revision="systemd">
<para>D-Bus-&dbus-version;</para> <para>D-Bus-&dbus-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Diffutils-&diffutils-version;</para> <para>Diffutils-&diffutils-version;</para>
</listitem> </listitem>-->
<listitem> <!--<listitem>
<para>E2fsprogs-&e2fsprogs-version;</para> <para>E2fsprogs-&e2fsprogs-version;</para>
</listitem> </listitem>-->
<!--<listitem revision="sysv"> <!--<listitem revision="sysv">
<para>Eudev-&eudev-version;</para> <para>Eudev-&eudev-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Expat-&expat-version;</para> <para>Expat-&expat-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Expect-&expect-version;</para> <para>Expect-&expect-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>File-&file-version;</para> <para>File-&file-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Findutils-&findutils-version;</para> <para>Findutils-&findutils-version;</para>
</listitem>--> </listitem>-->
@ -96,46 +96,46 @@
<!--<listitem> <!--<listitem>
<para>Gawk-&gawk-version;</para> <para>Gawk-&gawk-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>GCC-&gcc-version;</para> <para>GCC-&gcc-version;</para>
</listitem> </listitem>-->
<listitem> <listitem>
<para>GDBM-&gdbm-version;</para> <para>GDBM-&gdbm-version;</para>
</listitem> </listitem>
<!--<listitem> <!--<listitem>
<para>Gettext-&gettext-version;</para> <para>Gettext-&gettext-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Glibc-&glibc-version;</para> <para>Glibc-&glibc-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>GMP-&gmp-version;</para> <para>GMP-&gmp-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Gperf-&gperf-version;</para> <para>Gperf-&gperf-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Grep-&grep-version;</para> <para>Grep-&grep-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Groff-&groff-version;</para> <para>Groff-&groff-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>GRUB-&grub-version;</para> <para>GRUB-&grub-version;</para>
</listitem>
<!--<listitem>
<para>Gzip-&gzip-version;</para>
</listitem>--> </listitem>-->
<listitem> <listitem>
<para>IANA-Etc-&iana-etc-version;</para> <para>Gzip-&gzip-version;</para>
</listitem> </listitem>
<!--<listitem> <!--<listitem>
<para>Inetutils-&inetutils-version;</para> <para>IANA-Etc-&iana-etc-version;</para>
</listitem>--> </listitem>-->
<listitem>
<para>Inetutils-&inetutils-version;</para>
</listitem>
<!--<listitem> <!--<listitem>
<para>Intltool-&intltool-version;</para> <para>Intltool-&intltool-version;</para>
</listitem>--> </listitem>-->
<listitem> <listitem>
<para>IPRoute2-&iproute2-version;</para> <para>IPRoute2-&iproute2-version;</para>
</listitem> </listitem>
<!--<listitem revision="systemd"> <!--<listitem revision="systemd">
@ -144,51 +144,51 @@
<!--<listitem> <!--<listitem>
<para>Kbd-&kbd-version;</para> <para>Kbd-&kbd-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Kmod-&kmod-version;</para> <para>Kmod-&kmod-version;</para>
</listitem> </listitem>-->
<listitem> <!--<listitem>
<para>Less-&less-version;</para> <para>Less-&less-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>LFS-Bootscripts-&lfs-bootscripts-version;</para> <para>LFS-Bootscripts-&lfs-bootscripts-version;</para>
</listitem>--> </listitem>-->
<listitem> <listitem>
<para>Libcap-&libcap-version;</para> <para>Libcap-&libcap-version;</para>
</listitem> </listitem>
<listitem> <!--<listitem>
<para>Libelf-&elfutils-version; (from elfutils)</para> <para>Libelf-&elfutils-version; (from elfutils)</para>
</listitem> </listitem>-->
<listitem> <!--<listitem>
<para>Libffi-&libffi-version;</para> <para>Libffi-&libffi-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Libpipeline-&libpipeline-version;</para> <para>Libpipeline-&libpipeline-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Libtool-&libtool-version;</para> <para>Libtool-&libtool-version;</para>
</listitem>--> </listitem>-->
<listitem> <listitem>
<para>Linux-&linux-version;</para> <para>Linux-&linux-version;</para>
</listitem> </listitem>
<listitem> <!--<listitem>
<para>M4-&m4-version;</para> <para>M4-&m4-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Make-&make-version;</para> <para>Make-&make-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Man-DB-&man-db-version;</para> <para>Man-DB-&man-db-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Man-pages-&man-pages-version;</para> <para>Man-pages-&man-pages-version;</para>
</listitem> </listitem>-->
<!--<listitem revision="systemd"> <!--<listitem revision="systemd">
<para>MarkupSafe-&markupsafe-version;</para> <para>MarkupSafe-&markupsafe-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Meson-&meson-version;</para> <para>Meson-&meson-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>MPC-&mpc-version;</para> <para>MPC-&mpc-version;</para>
</listitem>--> </listitem>-->
@ -201,15 +201,15 @@
<!--<listitem> <!--<listitem>
<para>Ninja-&ninja-version;</para> <para>Ninja-&ninja-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Openssl-&openssl-version;</para> <para>Openssl-&openssl-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Patch-&patch-version;</para> <para>Patch-&patch-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Perl-&perl-version;</para> <para>Perl-&perl-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Pkg-config-&pkgconfig-version;</para> <para>Pkg-config-&pkgconfig-version;</para>
</listitem>--> </listitem>-->
@ -228,36 +228,36 @@
<!--<listitem> <!--<listitem>
<para>Sed-&sed-version;</para> <para>Sed-&sed-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Shadow-&shadow-version;</para> <para>Shadow-&shadow-version;</para>
</listitem> </listitem>-->
<listitem revision="sysv"> <!--<listitem revision="sysv">
<para>Sysklogd-&sysklogd-version;</para> <para>Sysklogd-&sysklogd-version;</para>
</listitem> </listitem>-->
<listitem revision="systemd"> <!--<listitem revision="systemd">
<para>Systemd-&systemd-version;</para> <para>Systemd-&systemd-version;</para>
</listitem> </listitem>-->
<listitem revision="sysv"> <!--<listitem revision="sysv">
<para>SysVinit-&sysvinit-version;</para> <para>SysVinit-&sysvinit-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Tar-&tar-version;</para> <para>Tar-&tar-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Tcl-&tcl-version;</para> <para>Tcl-&tcl-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Texinfo-&texinfo-version;</para> <para>Texinfo-&texinfo-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>Tzdata-&tzdata-version;</para> <para>Tzdata-&tzdata-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Util-Linux-&util-linux-version;</para> <para>Util-Linux-&util-linux-version;</para>
</listitem> </listitem>-->
<listitem> <!--<listitem>
<para>Vim-&vim-version;</para> <para>Vim-&vim-version;</para>
</listitem> </listitem>-->
<!--<listitem> <!--<listitem>
<para>XML-Parser-&xml-parser-version;</para> <para>XML-Parser-&xml-parser-version;</para>
</listitem>--> </listitem>-->
@ -267,9 +267,9 @@
<!--<listitem> <!--<listitem>
<para>Zlib-&zlib-version;</para> <para>Zlib-&zlib-version;</para>
</listitem>--> </listitem>-->
<listitem> <!--<listitem>
<para>Zstd-&zstd-version;</para> <para>Zstd-&zstd-version;</para>
</listitem> </listitem>-->
</itemizedlist> </itemizedlist>
<!--<itemizedlist> <!--<itemizedlist>
@ -284,6 +284,10 @@
<itemizedlist> <itemizedlist>
<title>Added:</title> <title>Added:</title>
<listitem><para></para></listitem> <!-- satisfy build --> <listitem><para></para></listitem> <!-- satisfy build -->
<listitem>
<para>file-5.40-upstream_fixes-1.patch</para>
</listitem>
<!--
<listitem> <listitem>
<para>binutils-2.37-upstream_fix-1.patch</para> <para>binutils-2.37-upstream_fix-1.patch</para>
</listitem> </listitem>
@ -296,7 +300,7 @@
<listitem revision="systemd"> <listitem revision="systemd">
<para>Jinja2-&jinja2-version;</para> <para>Jinja2-&jinja2-version;</para>
</listitem> </listitem>
-->
</itemizedlist> </itemizedlist>
<itemizedlist> <itemizedlist>

View File

@ -52,17 +52,17 @@
<envar>LFS</envar> variable needs to be bash to ensure that the <envar>LFS</envar> variable needs to be bash to ensure that the
<filename>/root/.bash_profile</filename> file is incorporated as a part of <filename>/root/.bash_profile</filename> file is incorporated as a part of
the login process.</para> the login process.</para>
<para>Another consideration is the method that is used to log into the <para>Another consideration is the method that is used to log into the
host system. If logging in through a graphical display manager, the host system. If logging in through a graphical display manager, the
user's <filename>.bash_profile</filename> is not normally used when user's <filename>.bash_profile</filename> is not normally used when
a virtual terminal is started. In this case, add the export command to a virtual terminal is started. In this case, add the export command to
the <filename>.bashrc</filename> file for the user and the <filename>.bashrc</filename> file for the user and
<systemitem class="username">root</systemitem>. In addition, <systemitem class="username">root</systemitem>. In addition,
some distributions have instructions to not run the <filename>.bashrc</filename> some distributions have instructions to not run the <filename>.bashrc</filename>
instructions in a non-interactive bash invocation. Be sure to add the instructions in a non-interactive bash invocation. Be sure to add the
export command before the test for non-interactive use.</para> export command before the test for non-interactive use.</para>
</note> </note>
</sect1> </sect1>

View File

@ -11,9 +11,9 @@
<title>Creating a File System on the Partition</title> <title>Creating a File System on the Partition</title>
<para>Now that a blank partition has been set up, the file system can be <para>Now that a blank partition has been set up, the file system can be
created. LFS can use any file system recognized by the Linux kernel, but the created. LFS can use any file system recognized by the Linux kernel, but the
most common types are ext3 and ext4. The choice of file system can be most common types are ext3 and ext4. The choice of file system can be
complex and depends on the characteristics of the files and the size of complex and depends on the characteristics of the files and the size of
the partition. For example:</para> the partition. For example:</para>
<variablelist> <variablelist>
@ -26,7 +26,7 @@
<varlistentry> <varlistentry>
<term>ext3</term> <term>ext3</term>
<listitem><para>is an upgrade to ext2 that includes a journal <listitem><para>is an upgrade to ext2 that includes a journal
to help recover the partition's status in the case of an unclean to help recover the partition's status in the case of an unclean
shutdown. It is commonly used as a general purpose file system. shutdown. It is commonly used as a general purpose file system.
</para> </para>
</listitem> </listitem>

View File

@ -37,7 +37,7 @@
<para>Start a disk partitioning program such as <command>cfdisk</command> <para>Start a disk partitioning program such as <command>cfdisk</command>
or <command>fdisk</command> with a command line option naming the hard or <command>fdisk</command> with a command line option naming the hard
disk on which the new partition will be created&mdash;for example disk on which the new partition will be created&mdash;for example
<filename class="devicefile">/dev/sda</filename> for the primary <filename class="devicefile">/dev/sda</filename> for the primary
disk drive. Create a Linux native partition and a disk drive. Create a Linux native partition and a
<systemitem class="filesystem">swap</systemitem> partition, if needed. Please <systemitem class="filesystem">swap</systemitem> partition, if needed. Please
refer to <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if refer to <filename>cfdisk(8)</filename> or <filename>fdisk(8)</filename> if
@ -88,7 +88,7 @@
swapping.</para> swapping.</para>
<para>If you want to use the hibernation feature (suspend-to-disk) of Linux, <para>If you want to use the hibernation feature (suspend-to-disk) of Linux,
it writes out the contents of RAM to the swap partition before turning off it writes out the contents of RAM to the swap partition before turning off
the machine. In this case the size of the swap partition should be at the machine. In this case the size of the swap partition should be at
least as large as the system's installed RAM.</para> least as large as the system's installed RAM.</para>
@ -114,8 +114,8 @@
<command>fdisk</command> or have a code of <emphasis>EF02</emphasis> if <command>fdisk</command> or have a code of <emphasis>EF02</emphasis> if
using <command>gdisk</command>.</para> using <command>gdisk</command>.</para>
<note><para>The Grub Bios partition must be on the drive that the BIOS <note><para>The Grub Bios partition must be on the drive that the BIOS
uses to boot the system. This is not necessarily the same drive where the uses to boot the system. This is not necessarily the same drive where the
LFS root partition is located. Disks on a system may use different LFS root partition is located. Disks on a system may use different
partition table types. The requirement for this partition depends partition table types. The requirement for this partition depends
only on the partition table type of the boot disk.</para></note> only on the partition table type of the boot disk.</para></note>

View File

@ -150,8 +150,8 @@
</important> </important>
<!-- Use an empty sect2 element to prevent a pdf warning. --> <!-- Use an empty sect2 element to prevent a pdf warning. -->
<bridgehead renderas="sect2" <bridgehead renderas="sect2"
id="version-check" id="version-check"
xreflabel="Host System Requirements"> xreflabel="Host System Requirements">
</bridgehead> </bridgehead>
<!--<title> </title>--> <!--<title> </title>-->
@ -177,7 +177,7 @@ if [ -h /usr/bin/yacc ]; then
elif [ -x /usr/bin/yacc ]; then elif [ -x /usr/bin/yacc ]; then
echo yacc is `/usr/bin/yacc --version | head -n1` echo yacc is `/usr/bin/yacc --version | head -n1`
else else
echo "yacc not found" echo "yacc not found"
fi fi
bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d" " -f1,6- bzip2 --version 2&gt;&amp;1 &lt; /dev/null | head -n1 | cut -d" " -f1,6-
@ -190,8 +190,8 @@ if [ -h /usr/bin/awk ]; then
echo "/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`"; echo "/usr/bin/awk -&gt; `readlink -f /usr/bin/awk`";
elif [ -x /usr/bin/awk ]; then elif [ -x /usr/bin/awk ]; then
echo awk is `/usr/bin/awk --version | head -n1` echo awk is `/usr/bin/awk --version | head -n1`
else else
echo "awk not found" echo "awk not found"
fi fi
gcc --version | head -n1 gcc --version | head -n1

View File

@ -11,8 +11,8 @@
<title>Introduction</title> <title>Introduction</title>
<para>In this chapter, the host tools needed for building LFS <para>In this chapter, the host tools needed for building LFS
are checked and, if necessary, installed. Then a partition which will are checked and, if necessary, installed. Then a partition which will
host the LFS system is prepared. We will create the partition host the LFS system is prepared. We will create the partition
itself, create a file system on it, and mount it.</para> itself, create a file system on it, and mount it.</para>
</sect1> </sect1>

View File

@ -47,8 +47,8 @@ mount -v -t ext4 /dev/<replaceable>&lt;yyy&gt;</replaceable> $LFS/home</userinpu
<warning><para>The above instructions assume that you will not be restarting <warning><para>The above instructions assume that you will not be restarting
your computer throughout the LFS process. If you shut down your system, your computer throughout the LFS process. If you shut down your system,
you will either need to remount the LFS partition each time you restart you will either need to remount the LFS partition each time you restart
the build process or modify your host system's /etc/fstab file to automatically the build process or modify your host system's /etc/fstab file to automatically
remount it upon boot. For example: remount it upon boot. For example:
<screen role="nodump">/dev/<replaceable>&lt;xxx&gt;</replaceable> /mnt/lfs ext4 defaults 1 1</screen> <screen role="nodump">/dev/<replaceable>&lt;xxx&gt;</replaceable> /mnt/lfs ext4 defaults 1 1</screen>

View File

@ -22,7 +22,7 @@
<para>These chapters are accomplished on the host system. When <para>These chapters are accomplished on the host system. When
restarting, be careful of the following:</para> restarting, be careful of the following:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>Procedures done as the <para>Procedures done as the
@ -32,7 +32,7 @@
</listitem> </listitem>
</itemizedlist> </itemizedlist>
</sect2> </sect2>
<sect2> <sect2>
<title>Chapter&nbsp;5&ndash;6</title> <title>Chapter&nbsp;5&ndash;6</title>
@ -85,8 +85,8 @@
<para> The virtual file systems must be mounted. This can be done <para> The virtual file systems must be mounted. This can be done
before or after entering chroot by changing to a host virtual terminal before or after entering chroot by changing to a host virtual terminal
and, as <systemitem class="username">root</systemitem>, running the and, as <systemitem class="username">root</systemitem>, running the
commands in commands in
<xref linkend='ch-tools-bindmount'/> and <xref linkend='ch-tools-bindmount'/> and
<xref linkend='ch-tools-kernfsmount'/>.</para> <xref linkend='ch-tools-kernfsmount'/>.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>

View File

@ -54,11 +54,11 @@
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>The files can be downloaded individually as described in the <para>The files can be downloaded individually as described in the
next two sections.</para> next two sections.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>For stable versions of the book, a tarball of all the needed files <para>For stable versions of the book, a tarball of all the needed files
can be downloaded from one of the LFS files mirrors listed at can be downloaded from one of the LFS files mirrors listed at
<ulink url="https://www.linuxfromscratch.org/mirrors.html#files"/>.</para> <ulink url="https://www.linuxfromscratch.org/mirrors.html#files"/>.</para>
</listitem> </listitem>
@ -83,7 +83,7 @@
md5sum -c md5sums md5sum -c md5sums
popd</userinput></screen> popd</userinput></screen>
<para>This check can be used after retrieving the needed files with any of the <para>This check can be used after retrieving the needed files with any of the
methods listed above.</para> methods listed above.</para>
</sect1> </sect1>

View File

@ -440,7 +440,7 @@
<note> <note>
<para>The Linux kernel is updated relatively often, many times due to <para>The Linux kernel is updated relatively often, many times due to
discoveries of security vulnerabilities. The latest available discoveries of security vulnerabilities. The latest available
<!--&linux-major-version;.&linux-minor-version;.x--> stable kernel <!--&linux-major-version;.&linux-minor-version;.x--> stable kernel
version <!--should--> may be version <!--should--> may be
used, unless the errata page says otherwise.</para> used, unless the errata page says otherwise.</para>

View File

@ -60,6 +60,14 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>File Upstream Fixes Patch - <token>&file-upstream-fixes-patch-size;</token>:</term>
<listitem>
<para>Download: <ulink url="&patches-root;&file-upstream-fixes-patch;"/></para>
<para>MD5 sum: <literal>&file-upstream-fixes-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term>Glibc FHS Patch - <token>&glibc-fhs-patch-size;</token>:</term> <term>Glibc FHS Patch - <token>&glibc-fhs-patch-size;</token>:</term>
<listitem> <listitem>

View File

@ -11,7 +11,7 @@
<title>Adding the LFS User</title> <title>Adding the LFS User</title>
<para>When logged in as user <systemitem class="username">root</systemitem>, <para>When logged in as user <systemitem class="username">root</systemitem>,
making a single mistake can damage or destroy a system. Therefore, making a single mistake can damage or destroy a system. Therefore,
the packages in the next two chapters are built as an unprivileged user. the packages in the next two chapters are built as an unprivileged user.
You could use your own user name, but to make it easier to set up a clean You could use your own user name, but to make it easier to set up a clean
working environment, create a new user called <systemitem working environment, create a new user called <systemitem

View File

@ -179,7 +179,7 @@ EOF</userinput></screen>
out of the way. As the <systemitem class="username">root</systemitem> out of the way. As the <systemitem class="username">root</systemitem>
user, run:</para> user, run:</para>
<screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen> <screen role="nodump"><userinput>[ ! -e /etc/bash.bashrc ] || mv -v /etc/bash.bashrc /etc/bash.bashrc.NOUSE</userinput></screen>
<para>After use of the <systemitem class="username">lfs</systemitem> <para>After use of the <systemitem class="username">lfs</systemitem>
user is finished at the beginning of <xref user is finished at the beginning of <xref

View File

@ -53,7 +53,7 @@
linker and assembler to determine which of their own features to linker and assembler to determine which of their own features to
enable.</para> enable.</para>
<para>The Binutils documentation recommends building Binutils <para>The Binutils documentation recommends building Binutils
in a dedicated build directory:</para> in a dedicated build directory:</para>
<screen><userinput remap="pre">mkdir -v build <screen><userinput remap="pre">mkdir -v build

View File

@ -72,7 +72,7 @@ mv -v mpc-&mpc-version; mpc</userinput></screen>
;; ;;
esac</userinput></screen> esac</userinput></screen>
<para>The GCC documentation recommends building GCC <para>The GCC documentation recommends building GCC
in a dedicated build directory:</para> in a dedicated build directory:</para>
<screen><userinput remap="pre">mkdir -v build <screen><userinput remap="pre">mkdir -v build
@ -107,7 +107,7 @@ cd build</userinput></screen>
<term><parameter>--with-glibc-version=2.11</parameter></term> <term><parameter>--with-glibc-version=2.11</parameter></term>
<listitem> <listitem>
<para>This option ensures the package will be compatible with the host's <para>This option ensures the package will be compatible with the host's
version of glibc. It is set to the minimum glibc requirement version of glibc. It is set to the minimum glibc requirement
specified in the <xref linkend="ch-partitioning-hostreqs"/>.</para> specified in the <xref linkend="ch-partitioning-hostreqs"/>.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -159,7 +159,7 @@ cd build</userinput></screen>
<varlistentry> <varlistentry>
<term><parameter>--disable-decimal-float, --disable-threads, <term><parameter>--disable-decimal-float, --disable-threads,
--disable-libatomic, --disable-libgomp, --disable-libatomic, --disable-libgomp,
--disable-libquadmath, --disable-libssp, --disable-libvtv, --disable-libquadmath, --disable-libssp, --disable-libvtv,
--disable-libstdcxx</parameter></term> --disable-libstdcxx</parameter></term>
<listitem> <listitem>

View File

@ -62,7 +62,7 @@ esac</userinput></screen>
<screen><userinput remap="pre">patch -Np1 -i ../glibc-&glibc-version;-fhs-1.patch</userinput></screen> <screen><userinput remap="pre">patch -Np1 -i ../glibc-&glibc-version;-fhs-1.patch</userinput></screen>
<para>The Glibc documentation recommends building Glibc <para>The Glibc documentation recommends building Glibc
in a dedicated build directory:</para> in a dedicated build directory:</para>
<screen><userinput remap="pre">mkdir -v build <screen><userinput remap="pre">mkdir -v build
@ -139,7 +139,7 @@ cd build</userinput></screen>
generally harmless. This <command>msgfmt</command> program is part of the generally harmless. This <command>msgfmt</command> program is part of the
Gettext package which the host distribution should provide.</para> Gettext package which the host distribution should provide.</para>
<note><para>There have been reports that this package may fail when <note><para>There have been reports that this package may fail when
building as a "parallel make". If this occurs, rerun the make command building as a "parallel make". If this occurs, rerun the make command
with a "-j1" option.</para></note> with a "-j1" option.</para></note>

View File

@ -24,7 +24,7 @@
<sect2 role="package"> <sect2 role="package">
<title/> <title/>
<para>Libstdc++ is the standard C++ library. It is needed <para>Libstdc++ is the standard C++ library. It is needed
to compile C++ code to compile C++ code
(part of GCC is written in C++), but we had to defer its installation (part of GCC is written in C++), but we had to defer its installation
when we built <xref linkend="ch-tools-gcc-pass1"/> when we built <xref linkend="ch-tools-gcc-pass1"/>

View File

@ -75,12 +75,12 @@ rm usr/include/Makefile
<seglistitem> <seglistitem>
<seg>/usr/include/asm/*.h, /usr/include/asm-generic/*.h, <seg>/usr/include/asm/*.h, /usr/include/asm-generic/*.h,
/usr/include/drm/*.h, /usr/include/linux/*.h, /usr/include/misc/*.h, /usr/include/drm/*.h, /usr/include/linux/*.h, /usr/include/misc/*.h,
/usr/include/mtd/*.h, /usr/include/rdma/*.h, /usr/include/scsi/*.h, /usr/include/mtd/*.h, /usr/include/rdma/*.h, /usr/include/scsi/*.h,
/usr/include/sound/*.h, /usr/include/video/*.h, /usr/include/sound/*.h, /usr/include/video/*.h,
and /usr/include/xen/*.h</seg> and /usr/include/xen/*.h</seg>
<seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm, <seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm,
/usr/include/linux, /usr/include/misc, /usr/include/mtd, /usr/include/linux, /usr/include/misc, /usr/include/mtd,
/usr/include/rdma, /usr/include/scsi, /usr/include/sound, /usr/include/rdma, /usr/include/scsi, /usr/include/sound,
/usr/include/video, and /usr/include/xen</seg> /usr/include/video, and /usr/include/xen</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>

View File

@ -83,10 +83,10 @@
not necessary in this temporary environment, we must do so because some not necessary in this temporary environment, we must do so because some
programs harcode executable locations:</para> programs harcode executable locations:</para>
<screen><userinput remap="install">mv -v $LFS/usr/bin/chroot $LFS/usr/sbin <screen><userinput remap="install">mv -v $LFS/usr/bin/chroot $LFS/usr/sbin
mkdir -pv $LFS/usr/share/man/man8 mkdir -pv $LFS/usr/share/man/man8
mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8
sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen> sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8</userinput></screen>
</sect2> </sect2>

View File

@ -44,8 +44,8 @@
<title>Installation of File</title> <title>Installation of File</title>
<para> <para>
The <command>file</command> command on the build host needs The <command>file</command> command on the build host needs
to be same version as the one we are building in order to to be same version as the one we are building in order to
create the signature file. Run the following commands to build it: create the signature file. Run the following commands to build it:
</para> </para>

View File

@ -18,7 +18,7 @@
<para>Using the utilities will be possible in next chapter after entering <para>Using the utilities will be possible in next chapter after entering
the <quote>chroot</quote> environment. But all the packages built in the the <quote>chroot</quote> environment. But all the packages built in the
present chapter need to be built before we do that. Therefore we cannot be present chapter need to be built before we do that. Therefore we cannot be
independent of the host system yet.</para> independent of the host system yet.</para>
<para>Once again, let us recall that improper setting of <envar>LFS</envar> <para>Once again, let us recall that improper setting of <envar>LFS</envar>

View File

@ -24,7 +24,7 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="python.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="python.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="texinfo.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="util-linux.xml"/>
<!-- <!--
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expect.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expect.xml"/>

View File

@ -9,7 +9,7 @@
<?dbhtml filename="cleanup.html"?> <?dbhtml filename="cleanup.html"?>
<title>Cleaning up and Saving the Temporary System</title> <title>Cleaning up and Saving the Temporary System</title>
<sect2> <sect2>
<title>Cleaning</title> <title>Cleaning</title>
@ -20,13 +20,13 @@
<para>Second, the libtool .la files are only useful when linking with static <para>Second, the libtool .la files are only useful when linking with static
libraries. They are unneeded and potentially harmful when using dynamic libraries. They are unneeded and potentially harmful when using dynamic
shared libraries, specially when using non-autotools build systems. shared libraries, especially when using non-autotools build systems.
While still in chroot, remove those files now:</para> While still in chroot, remove those files now:</para>
<screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen> <screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen>
<para> <para>
The current system size is now about 3 GB, however The current system size is now about 3 GB, however
the /tools directory is no longer needed. It uses about the /tools directory is no longer needed. It uses about
1 GB of disk space. Delete it now: 1 GB of disk space. Delete it now:
</para> </para>
@ -37,14 +37,25 @@
<sect2> <sect2>
<title>Backup</title> <title>Backup</title>
<para>
At this point the essential programs and libraries have been created
and your current LFS system is in a good state. Your system can now be
backed up for later reuse. In case of fatal failures in the subsequent
chapters, it often turns out that removing everything and starting over
(more carefully) is the best option to recover. Unfortunately, all the
temporary files will be removed, too. To avoid spending extra time to
redo something which has been built successfully, creating a backup of
the current LFS system may prove useful.
</para>
<note><para> <note><para>
All the remaining steps in this section are optional. Nevertheless, All the remaining steps in this section are optional. Nevertheless,
as soon as you begin installing packages in <xref as soon as you begin installing packages in <xref
linkend="chapter-building-system"/>, the temporary files will be linkend="chapter-building-system"/>, the temporary files will be
overwritten. So it may be a good idea to do a backup of the current overwritten. So it may be a good idea to do a backup of the current
system as described below. system as described below.
</para></note> </para></note>
<para> <para>
The following steps are performed from outside the chroot The following steps are performed from outside the chroot
environment. That means, you have to leave the chroot environment environment. That means, you have to leave the chroot environment
@ -56,47 +67,54 @@
safety reasons. safety reasons.
</para> </para>
<important>
<para>All of the following instructions are executed by
<systemitem class="username">root</systemitem>. Take extra
care about the commands you're going to run as mistakes
here can modify your host system. Be aware that the
environment variable <envar>LFS</envar>
is set for user <systemitem class="username">lfs</systemitem> by default
but may <emphasis>not</emphasis> be set for
<systemitem class="username">root</systemitem>. Whenever
commands are to be executed by <systemitem class="username">root</systemitem>,
make sure you have set <envar>LFS</envar>.
This has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>.
</para>
</important>
<para> <para>
Now, if you are making a backup, leave the chroot environment: If you have decided to make a backup, leave the chroot environment:
</para> </para>
<screen role="nodump"><userinput>exit</userinput></screen> <screen role="nodump"><userinput>exit</userinput></screen>
<para> <important>
At this point the essential programs and libraries have been created <para>
and your current system is in a good state. Your system can now be All of the following instructions are executed by
backed up for later reuse. In case of fatal failures in the subsequent <systemitem class="username">root</systemitem> on your host system.
chapters, it often turns out that removing everything and starting over Take extra care about the commands you're going to run as mistakes
(more carefully) is the best option to recover. Unfortunately, all the here can modify your host system. Be aware that the
temporary files will be removed, too. To avoid spending extra time to environment variable <envar>LFS</envar>
redo something which has been built successfully, prepare a backup. is set for user <systemitem class="username">lfs</systemitem> by default
</para> but may <emphasis>not</emphasis> be set for
<systemitem class="username">root</systemitem>.
</para>
<para>
Whenever commands are to be executed by <systemitem class="username">root</systemitem>,
make sure you have set <envar>LFS</envar>.
</para>
<para>
This has been discussed in <xref linkend='ch-partitioning-aboutlfs'/>.
</para>
</important>
<para>Before making a backup, unmount the virtual file systems:</para>
<screen role="nodump"><userinput>umount $LFS/dev/pts
umount $LFS/{sys,proc,run,dev}</userinput></screen>
<para> <para>
Make sure you have at least 1 GB free disk space (the source tarballs Make sure you have at least 1 GB free disk space (the source tarballs
will be included in the backup archive) in the home directory of user will be included in the backup archive) on the filesystem containing
<systemitem class="username">root</systemitem>. directory where you create the backup archive.
</para> </para>
<para>Before we make a backup, unmount the virtual file systems:</para> <para>
Note that the instructions below specify the home directory of the host
system's <systemitem class="username">root</systemitem> user, which is
typically found on the root filesystem.
</para>
<screen role="nodump"><userinput>umount $LFS/dev{/pts,} <para>
umount $LFS/{sys,proc,run}</userinput></screen> Replace <envar>$HOME</envar> by a directory of your choice if you
do not want to have the backup stored in <systemitem
class="username">root</systemitem>'s home directory.
</para>
<para> <para>
Create the backup archive by running the following command: Create the backup archive by running the following command:
@ -107,21 +125,11 @@ umount $LFS/{sys,proc,run}</userinput></screen>
Because the backup archive is compressed, it takes a relatively Because the backup archive is compressed, it takes a relatively
long time (over 10 minutes) even on a resonably fast system. long time (over 10 minutes) even on a resonably fast system.
</para> </para>
<para>
Also, ensure the <envar>LFS</envar> environment variable is set
for the root user.
</para>
</note> </note>
<screen role="nodump"><userinput>cd $LFS <screen role="nodump"><userinput>cd $LFS
tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen> tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen>
<para>
Replace <envar>$HOME</envar> by a directory of your choice if you
do not want to have the backup stored in <systemitem
class="username">root</systemitem>'s home directory.
</para>
</sect2> </sect2>
<sect2> <sect2>
@ -130,7 +138,7 @@ tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen>
<para> <para>
In case some mistakes have been made and you need to start over, you can In case some mistakes have been made and you need to start over, you can
use this backup to restore the system and save some recovery time. use this backup to restore the system and save some recovery time.
Since the sources are located under Since the sources are located under
<filename class="directory">$LFS</filename>, they are included in the <filename class="directory">$LFS</filename>, they are included in the
backup archive as well, so they do not need to be downloaded again. After backup archive as well, so they do not need to be downloaded again. After
checking that <envar>$LFS</envar> is set properly, checking that <envar>$LFS</envar> is set properly,
@ -141,9 +149,9 @@ tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .</userinput></screen>
restore when they don't need to. --> restore when they don't need to. -->
<warning><para>The following commands are extremly dangerous. If <warning><para>The following commands are extremly dangerous. If
you run <command>rm -rf ./*</command> as the root user and you you run <command>rm -rf ./*</command> as the root user and you
do not change to the $LFS directory or the <envar>LFS</envar> do not change to the $LFS directory or the <envar>LFS</envar>
environment variable is not set for the root user, it will destroy environment variable is not set for the root user, it will destroy
your entire host system. YOU ARE WARNED.</para></warning> your entire host system. YOU ARE WARNED.</para></warning>
<screen role="nodump"><computeroutput>cd $LFS <screen role="nodump"><computeroutput>cd $LFS
@ -165,7 +173,7 @@ tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz</computeroutput></screen>
environment (see <xref linkend='ch-tools-chroot'/>) before continuing. environment (see <xref linkend='ch-tools-chroot'/>) before continuing.
</para> </para>
</important> </important>
</sect2> </sect2>
</sect1> </sect1>

View File

@ -11,11 +11,10 @@
<title>Introduction</title> <title>Introduction</title>
<para>This chapter shows how to build the last missing bits of the temporary <para>This chapter shows how to build the last missing bits of the temporary
system: the tools needed by the build machinery of various packages. system: the tools needed by the build machinery of various packages. Now
Now that all circular dependencies that all circular dependencies have been resolved, a <quote>chroot</quote>
have been resolved, we can use a <quote>chroot</quote> environment, environment, completely isolated from the host operating system (except for
completely isolated the host operating system used for the build, except the running kernel), can be used for the build.</para>
for the running kernel.</para>
<para>For proper operation of the isolated environment, some communication <para>For proper operation of the isolated environment, some communication
with the running kernel must be established. This is done through the with the running kernel must be established. This is done through the

View File

@ -104,7 +104,7 @@ mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
--> -->
<para>In some host systems, <filename>/dev/shm</filename> is a <para>In some host systems, <filename>/dev/shm</filename> is a
symbolic link to <filename class="directory">/run/shm</filename>. symbolic link to <filename class="directory">/run/shm</filename>.
The /run tmpfs was mounted above so in this case only a The /run tmpfs was mounted above so in this case only a
directory needs to be created.</para> directory needs to be created.</para>
<screen><userinput>if [ -h $LFS/dev/shm ]; then <screen><userinput>if [ -h $LFS/dev/shm ]; then

View File

@ -60,7 +60,7 @@
<varlistentry> <varlistentry>
<term><parameter>-des</parameter></term> <term><parameter>-des</parameter></term>
<listitem> <listitem>
<para>This is a combination of three options: -d uses defaults for <para>This is a combination of three options: -d uses defaults for
all items; -e ensures completion of all tasks; -s silences all items; -e ensures completion of all tasks; -s silences
non-essential output.</para> non-essential output.</para>
</listitem> </listitem>

View File

@ -53,7 +53,7 @@
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>
<para>The tests need to be run on a filesystem that supports extended <para>The tests need to be run on a filesystem that supports extended
attributes such as the ext2, ext3, or ext4 filesystems. attributes such as the ext2, ext3, or ext4 filesystems.
To test the results, issue:</para> To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen> <screen><userinput remap="test">make check</userinput></screen>

View File

@ -59,7 +59,7 @@
<screen><userinput remap="test">make -j4 check</userinput></screen> <screen><userinput remap="test">make -j4 check</userinput></screen>
<!-- <!--
<para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to <para>The tests t/subobj.sh, t/deprecated-acinit.sh, and t/init.sh are known to
fail in the LFS environment.</para> fail in the LFS environment.</para>
--> -->
<para>Install the package:</para> <para>Install the package:</para>

View File

@ -23,7 +23,7 @@
<sect2 role="package"> <sect2 role="package">
<title/> <title/>
<para>The Bc package contains an arbitrary precision numeric processing <para>The Bc package contains an arbitrary precision numeric processing
language.</para> language.</para>
<segmentedlist> <segmentedlist>

View File

@ -74,7 +74,7 @@ find -name \*.1 -delete</userinput></screen>
<screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen> <screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen>
--> -->
<para>The Binutils documentation recommends building Binutils <para>The Binutils documentation recommends building Binutils
in a dedicated build directory:</para> in a dedicated build directory:</para>
<screen><userinput remap="pre">mkdir -v build <screen><userinput remap="pre">mkdir -v build
@ -297,7 +297,7 @@ cd build</userinput></screen>
<varlistentry id="ld.gold"> <varlistentry id="ld.gold">
<term><command>ld.gold</command></term> <term><command>ld.gold</command></term>
<listitem> <listitem>
<para>A cut down version of ld that only supports the <para>A cut down version of ld that only supports the
elf object file format</para> elf object file format</para>
<indexterm zone="ch-system-binutils ld.gold"> <indexterm zone="ch-system-binutils ld.gold">
<primary sortas="b-ld.gold">ld.gold</primary> <primary sortas="b-ld.gold">ld.gold</primary>

View File

@ -66,7 +66,7 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ninja.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ninja.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="meson.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="meson.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="check.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gawk.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gawk.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="findutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="findutils.xml"/>

View File

@ -88,7 +88,7 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
<varlistentry> <varlistentry>
<term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term> <term><envar>FORCE_UNSAFE_CONFIGURE=1</envar></term>
<listitem> <listitem>
<para>This environment variable allows the package to be <para>This environment variable allows the package to be
built as the <systemitem class="username">root</systemitem> user. built as the <systemitem class="username">root</systemitem> user.
</para> </para>
</listitem> </listitem>

View File

@ -114,7 +114,7 @@
<seglistitem> <seglistitem>
<seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor, <seg>dbus-cleanup-sockets, dbus-daemon, dbus-launch, dbus-monitor,
dbus-run-session, dbus-send, dbus-test-tool, dbus-run-session, dbus-send, dbus-test-tool,
dbus-update-activation-environment, and dbus-uuidgen</seg> dbus-update-activation-environment, and dbus-uuidgen</seg>
<seg>libdbus-1.{a,so}</seg> <seg>libdbus-1.{a,so}</seg>
<seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0, <seg>/etc/dbus-1, /usr/include/dbus-1.0, /usr/lib/dbus-1.0,

View File

@ -24,7 +24,7 @@
<title/> <title/>
<para>The Eudev package contains programs for dynamic creation of device <para>The Eudev package contains programs for dynamic creation of device
nodes.</para> nodes.</para>
<segmentedlist> <segmentedlist>
<segtitle>&buildtime;</segtitle> <segtitle>&buildtime;</segtitle>
@ -76,7 +76,7 @@ mkdir -pv /etc/udev/rules.d</userinput></screen>
<screen><userinput remap="install">make install</userinput></screen> <screen><userinput remap="install">make install</userinput></screen>
<para>Install some custom rules and support files useful in an LFS <para>Install some custom rules and support files useful in an LFS
environment:</para> environment:</para>
<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz

View File

@ -62,7 +62,7 @@
<varlistentry> <varlistentry>
<term><parameter>--with-tcl=/usr/lib</parameter></term> <term><parameter>--with-tcl=/usr/lib</parameter></term>
<listitem> <listitem>
<para>This parameter is needed to tell <para>This parameter is needed to tell
<command>configure</command> where the <command>configure</command> where the
<command>tclConfig.sh</command> script is located.</para> <command>tclConfig.sh</command> script is located.</para>
</listitem> </listitem>

View File

@ -41,6 +41,10 @@
<sect2 role="installation"> <sect2 role="installation">
<title>Installation of File</title> <title>Installation of File</title>
<para>First, fix a few regressions in File:</para>
<screen><userinput remap="pre">patch -Np1 -i ../file-&file-version;-upstream_fixes-1.patch</userinput></screen>
<para>Prepare File for compilation:</para> <para>Prepare File for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>

View File

@ -115,7 +115,7 @@ cd build</userinput></screen>
<para>Test the results as a non-privileged user, but do not stop at errors:</para> <para>Test the results as a non-privileged user, but do not stop at errors:</para>
<screen><userinput remap="test">chown -Rv tester . <screen><userinput remap="test">chown -Rv tester .
su tester -c "PATH=$PATH make -k check"</userinput></screen> su tester -c "PATH=$PATH make -k check"</userinput></screen>
<para>To receive a summary of the test suite results, run:</para> <para>To receive a summary of the test suite results, run:</para>
@ -185,7 +185,7 @@ rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</useri
<screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen> <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
--> -->
<para>Add a compatibility symlink to enable building programs with <para>Add a compatibility symlink to enable building programs with
Link Time Optimization (LTO):</para> Link Time Optimization (LTO):</para>
<screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \ <screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
/usr/lib/bfd-plugins/</userinput></screen> /usr/lib/bfd-plugins/</userinput></screen>
@ -351,7 +351,7 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so}, libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
and libubsan.{a,so}</seg> and libubsan.{a,so}</seg>
<seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, and
/usr/share/gcc-&gcc-version;</seg> /usr/share/gcc-&gcc-version;</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>

View File

@ -46,7 +46,7 @@
<para>First, fix a security problem identified upstream:</para> <para>First, fix a security problem identified upstream:</para>
<screen><userinput remap="pre">sed -e '/NOTIFY_REMOVED)/s/)/ \&amp;\&amp; data.attr != NULL)/' \ <screen><userinput remap="pre">sed -e '/NOTIFY_REMOVED)/s/)/ \&amp;\&amp; data.attr != NULL)/' \
-i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen> -i sysdeps/unix/sysv/linux/mq_notify.c</userinput></screen>
<para>Some of the Glibc programs use the non-FHS compliant <para>Some of the Glibc programs use the non-FHS compliant
<filename class="directory">/var/db</filename> directory to store <filename class="directory">/var/db</filename> directory to store
@ -55,7 +55,7 @@
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen> <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
<para>The Glibc documentation recommends building Glibc <para>The Glibc documentation recommends building Glibc
in a dedicated build directory:</para> in a dedicated build directory:</para>
<screen><userinput remap="pre">mkdir -v build <screen><userinput remap="pre">mkdir -v build
@ -82,7 +82,7 @@ cd build</userinput></screen>
<varlistentry> <varlistentry>
<term><parameter>--disable-werror</parameter></term> <term><parameter>--disable-werror</parameter></term>
<listitem> <listitem>
<para>This option disables the -Werror option passed to <para>This option disables the -Werror option passed to
GCC. This is necessary for running the test suite.</para> GCC. This is necessary for running the test suite.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -100,7 +100,7 @@ cd build</userinput></screen>
<varlistentry> <varlistentry>
<term><parameter>--enable-stack-protector=strong</parameter></term> <term><parameter>--enable-stack-protector=strong</parameter></term>
<listitem> <listitem>
<para>This option increases system security by adding <para>This option increases system security by adding
extra code to check for buffer overflows, such as stack extra code to check for buffer overflows, such as stack
smashing attacks.</para> smashing attacks.</para>
</listitem> </listitem>
@ -150,18 +150,18 @@ esac</userinput></screen>
<para>You may see some test failures. The Glibc test suite is <para>You may see some test failures. The Glibc test suite is
somewhat dependent on the host system. A few failures out of somewhat dependent on the host system. A few failures out of
over 4200 tests can generally be ignored. This is a list of the over 4200 tests can generally be ignored. This is a list of the
most common issues seen for recent versions of LFS:</para> most common issues seen for recent versions of LFS:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para><emphasis>io/tst-lchmod</emphasis> <para><emphasis>io/tst-lchmod</emphasis>
is known to fail in the LFS chroot environment.</para> is known to fail in the LFS chroot environment.</para>
</listitem> </listitem>
<listitem> <listitem>
<para><emphasis>misc/tst-ttyname</emphasis> <para><emphasis>misc/tst-ttyname</emphasis>
is known to fail in the LFS chroot environment.</para> is known to fail in the LFS chroot environment.</para>
</listitem> </listitem>
<!-- <!--
@ -173,7 +173,7 @@ esac</userinput></screen>
<listitem> <listitem>
<para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on <para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on
the host system kernel. Kernels 4.14.91&ndash;4.14.96, the host system kernel. Kernels 4.14.91&ndash;4.14.96,
4.19.13&ndash;4.19.18, and 4.20.0&ndash;4.20.5 are known to 4.19.13&ndash;4.19.18, and 4.20.0&ndash;4.20.5 are known to
cause these tests to fail. cause these tests to fail.
</para> </para>
</listitem> </listitem>
@ -213,7 +213,7 @@ esac</userinput></screen>
<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf <screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
mkdir -pv /var/cache/nscd</userinput></screen> mkdir -pv /var/cache/nscd</userinput></screen>
<para revision="systemd">Install the systemd support files for <para revision="systemd">Install the systemd support files for
<command>nscd</command>:</para> <command>nscd</command>:</para>
<screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
@ -287,13 +287,13 @@ localedef -i zh_TW -f UTF-8 zh_TW.UTF-8</userinput></screen>
<filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
when you need them. For instance, the following two locales are when you need them. For instance, the following two locales are
needed for some tests later in this chapter:</para> needed for some tests later in this chapter:</para>
<screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true <screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
localedef -i ja_JP -f SHIFT_JIS ja_JP.SIJS 2> /dev/null || true</userinput></screen> localedef -i ja_JP -f SHIFT_JIS ja_JP.SIJS 2> /dev/null || true</userinput></screen>
<note><para>Glibc now uses libidn2 when resolving internationalized <note><para>Glibc now uses libidn2 when resolving internationalized
domain names. This is a run time dependency. If this capability domain names. This is a run time dependency. If this capability
is needed, the instructions for installing libidn2 are in the is needed, the instructions for installing libidn2 are in the
<ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>. <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>.
</para></note> </para></note>
@ -479,7 +479,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
<seglistitem> <seglistitem>
<seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig, <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace, pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace,
zdump, and zic</seg> zdump, and zic</seg>
<seg>ld-linux-x86-64.so.2, ld-linux.so.2, <seg>ld-linux-x86-64.so.2, ld-linux.so.2,
@ -949,7 +949,6 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
code for <quote>standard</quote> functions used in code for <quote>standard</quote> functions used in
many different Unix utilities. These functions are now in many different Unix utilities. These functions are now in
<filename class="libraryfile">libc</filename></para> <filename class="libraryfile">libc</filename></para>
<indexterm zone="ch-system-glibc libutil"> <indexterm zone="ch-system-glibc libutil">
<primary sortas="c-libutil">libutil</primary> <primary sortas="c-libutil">libutil</primary>
</indexterm> </indexterm>

View File

@ -53,7 +53,7 @@
<note> <note>
<para>The default settings of GMP produce libraries optimized for <para>The default settings of GMP produce libraries optimized for
the host processor. If libraries suitable for processors less the host processor. If libraries suitable for processors less
capable than the host's CPU are desired, generic libraries can be capable than the host's CPU are desired, generic libraries can be
created by running the following: created by running the following:
<screen role="nodump"><userinput>cp -v configfsf.guess config.guess <screen role="nodump"><userinput>cp -v configfsf.guess config.guess
@ -100,7 +100,7 @@ make html</userinput></screen>
<para>Test the results:</para> <para>Test the results:</para>
<screen><userinput remap="test">make check 2>&amp;1 | tee gmp-check-log</userinput></screen> <screen><userinput remap="test">make check 2>&amp;1 | tee gmp-check-log</userinput></screen>
<caution><para>The code in gmp is highly optimized for the processor where <caution><para>The code in gmp is highly optimized for the processor where
it is built. Occasionally, the code that detects the processor misidentifies it is built. Occasionally, the code that detects the processor misidentifies
the system capabilities and there will be errors in the tests or other the system capabilities and there will be errors in the tests or other

View File

@ -106,11 +106,11 @@ mv -v /etc/bash_completion.d/grub /usr/share/bash-completion/completions</userin
<seglistitem> <seglistitem>
<seg>grub-bios-setup, grub-editenv, grub-file, grub-fstest, <seg>grub-bios-setup, grub-editenv, grub-file, grub-fstest,
grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless, grub-glue-efi, grub-install, grub-kbdcomp, grub-macbless,
grub-menulst2cfg, grub-mkconfig, grub-menulst2cfg, grub-mkconfig,
grub-mkimage, grub-mklayout, grub-mknetdir, grub-mkimage, grub-mklayout, grub-mknetdir,
grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone, grub-mkpasswd-pbkdf2, grub-mkrelpath, grub-mkrescue, grub-mkstandalone,
grub-ofpathname, grub-probe, grub-reboot, grub-render-label, grub-ofpathname, grub-probe, grub-reboot, grub-render-label,
grub-script-check, grub-script-check,
grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg> grub-set-default, grub-sparc64-setup, and grub-syslinux2cfg</seg>

View File

@ -66,7 +66,7 @@
<segtitle>Installed programs</segtitle> <segtitle>Installed programs</segtitle>
<seglistitem> <seglistitem>
<seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp,
zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg> zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>

View File

@ -128,7 +128,7 @@
<segtitle>Installed programs</segtitle> <segtitle>Installed programs</segtitle>
<seglistitem> <seglistitem>
<seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6, <seg>dnsdomainname, ftp, ifconfig, hostname, ping, ping6,
talk, telnet, tftp, and traceroute</seg> talk, telnet, tftp, and traceroute</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>

View File

@ -43,8 +43,8 @@
<para>The <command>arpd</command> program included in this package will not <para>The <command>arpd</command> program included in this package will not
be built since it is dependent on Berkeley DB, which is not installed in be built since it is dependent on Berkeley DB, which is not installed in
LFS. However, a directory for <command>arpd</command> and a man page will still LFS. However, a directory for <command>arpd</command> and a man page will still
be installed. Prevent this by running the commands below. be installed. Prevent this by running the commands below.
If the <command>arpd</command> binary is needed, If the <command>arpd</command> binary is needed,
instructions for compiling Berkeley DB can be found in the BLFS Book at instructions for compiling Berkeley DB can be found in the BLFS Book at
<ulink url="&blfs-book;server/db.html"/>. <ulink url="&blfs-book;server/db.html"/>.
@ -53,7 +53,7 @@
<screen><userinput remap="pre">sed -i /ARPD/d Makefile <screen><userinput remap="pre">sed -i /ARPD/d Makefile
rm -fv man/man8/arpd.8</userinput></screen> rm -fv man/man8/arpd.8</userinput></screen>
<para>It is also necessary to disable building two modules that <para>It is also necessary to disable building two modules that
require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para> require <ulink url="&blfs-book;postlfs/iptables.html"/>.</para>
<screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen> <screen><userinput remap="pre">sed -i 's/.m_ipt.o//' tc/Makefile</userinput></screen>

View File

@ -116,7 +116,7 @@ cp -R -v docs/doc/* /usr/share/doc/kbd-&kbd-version;</userinput></screen>
psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,--> psfxtable), psfstriptable (link to psfxtable), psfxtable, <!--resizecons,-->
setfont, setkeycodes, setleds, setmetamode, setvtrgb, setfont, setkeycodes, setleds, setmetamode, setvtrgb,
showconsolefont, showkey, unicode_start, and unicode_stop</seg> showconsolefont, showkey, unicode_start, and unicode_stop</seg>
<seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps, <seg>/usr/share/consolefonts, /usr/share/consoletrans, /usr/share/keymaps,
/usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg> /usr/share/doc/kbd-&kbd-version;, and /usr/share/unimaps</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>

View File

@ -91,7 +91,7 @@ ln -sfv kmod /usr/bin/lsmod</userinput></screen>
<segtitle>Installed library</segtitle> <segtitle>Installed library</segtitle>
<seglistitem> <seglistitem>
<seg>depmod (link to kmod), insmod (link to kmod), kmod, <seg>depmod (link to kmod), insmod (link to kmod), kmod,
lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod), lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
and rmmod (link to kmod)</seg> and rmmod (link to kmod)</seg>
<seg>libkmod.so</seg> <seg>libkmod.so</seg>

View File

@ -55,7 +55,7 @@
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>
<para>To test the results, issue:</para> <para>To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen> <screen><userinput remap="test">make check</userinput></screen>
<!-- <para>One test, run-elfclassify.sh, is known to fail.</para>--> <!-- <para>One test, run-elfclassify.sh, is known to fail.</para>-->

View File

@ -66,9 +66,9 @@
<para>Ensure GCC optimizes for the current system. If this <para>Ensure GCC optimizes for the current system. If this
is not specified, the system is guessed and the code generated is not specified, the system is guessed and the code generated
may not be correct for some systems. If the generated code may not be correct for some systems. If the generated code
will be copied from the native system to a less capable will be copied from the native system to a less capable
system, use the less capable system as a parameter. For details system, use the less capable system as a parameter. For details
about alternative system types, see <ulink about alternative system types, see <ulink
url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'> url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'>
the x86 options in the GCC manual</ulink>.</para> the x86 options in the GCC manual</ulink>.</para>
</listitem> </listitem>

View File

@ -61,7 +61,7 @@
percent.</para></note> percent.</para></note>
<para>Five tests are known to fail in the LFS build environment due <para>Five tests are known to fail in the LFS build environment due
to a circular dependency, but all tests pass if rechecked after to a circular dependency, but all tests pass if rechecked after
automake is installed.</para> automake is installed.</para>
<para>Install the package:</para> <para>Install the package:</para>

View File

@ -100,7 +100,7 @@
<varlistentry revision="sysv"> <varlistentry revision="sysv">
<term><parameter>--with-systemd...</parameter></term> <term><parameter>--with-systemd...</parameter></term>
<listitem> <listitem>
<para>These parameters prevent installing unneeded systemd <para>These parameters prevent installing unneeded systemd
directories and files.</para> directories and files.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -69,7 +69,7 @@ install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/
<variablelist> <variablelist>
<title>The meaning of the install parameters:</title> <title>The meaning of the install parameters:</title>
<varlistentry> <varlistentry>
<term><parameter>--root=dest</parameter></term> <term><parameter>--root=dest</parameter></term>
<listitem> <listitem>

View File

@ -132,7 +132,7 @@ cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
<para>The instructions above don't create non-wide-character Ncurses <para>The instructions above don't create non-wide-character Ncurses
libraries since no package installed by compiling from sources would link libraries since no package installed by compiling from sources would link
against them at runtime. However, the only known binary-only against them at runtime. However, the only known binary-only
applications that link against non-wide-character Ncurses libraries applications that link against non-wide-character Ncurses libraries
require version 5. If you must have such libraries because of some binary-only require version 5. If you must have such libraries because of some binary-only
application or to be compliant with LSB, build the package again with the application or to be compliant with LSB, build the package again with the
following commands:</para> following commands:</para>
@ -143,7 +143,7 @@ cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
--without-normal \ --without-normal \
--without-debug \ --without-debug \
--without-cxx-binding \ --without-cxx-binding \
--with-abi-version=5 --with-abi-version=5
make sources libs make sources libs
cp -av lib/lib*.so.5* /usr/lib</userinput></screen> cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
</note> </note>
@ -160,27 +160,27 @@ cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
<seglistitem> <seglistitem>
<seg> <seg>
captoinfo (link to tic), captoinfo (link to tic),
clear, clear,
infocmp, infocmp,
infotocap (link to tic), infotocap (link to tic),
ncursesw6-config, ncursesw6-config,
reset (link to tset), reset (link to tset),
tabs, tabs,
tic, tic,
toe, toe,
tput, and tput, and
tset tset
</seg> </seg>
<seg> <seg>
libcursesw.so (symlink and linker script to libncursesw.so), libcursesw.so (symlink and linker script to libncursesw.so),
libformw.so, libformw.so,
libmenuw.so, libmenuw.so,
libncursesw.so, libncursesw.so,
libpanelw.so, and their non-wide-character counterparts without "w" libpanelw.so, and their non-wide-character counterparts without "w"
in the library names.</seg> in the library names.</seg>
<seg> <seg>
/usr/share/tabset, /usr/share/tabset,
/usr/share/terminfo, and /usr/share/terminfo, and
/usr/share/doc/ncurses-&ncurses-version; /usr/share/doc/ncurses-&ncurses-version;
</seg> </seg>

View File

@ -50,21 +50,21 @@
<title>Installation of Ninja</title> <title>Installation of Ninja</title>
<para>When run, ninja normally runs a maximum number of processes <para>When run, ninja normally runs a maximum number of processes
in parallel. By default this is the number of cores on the system in parallel. By default this is the number of cores on the system
plus two. In some cases this can overheat a CPU or run a system out plus two. In some cases this can overheat a CPU or run a system out
of memory. If run from the command line, passing a -jN parameter of memory. If run from the command line, passing a -jN parameter
will limit the number of parallel processes, but some packages will limit the number of parallel processes, but some packages
embed the execution of ninja and do not pass a -j parameter.</para> embed the execution of ninja and do not pass a -j parameter.</para>
<para>Using the <emphasis>optional</emphasis> procedure below allows a user to <para>Using the <emphasis>optional</emphasis> procedure below allows a user to
limit the number of parallel processes via an environment variable, limit the number of parallel processes via an environment variable,
NINJAJOBS. <emphasis role="bold">For example</emphasis>, setting: NINJAJOBS. <emphasis role="bold">For example</emphasis>, setting:
<screen>export NINJAJOBS=4</screen> <screen>export NINJAJOBS=4</screen>
will limit ninja to four parallel processes.</para> will limit ninja to four parallel processes.</para>
<para>If desired, add the capability to use the environment variable <para>If desired, add the capability to use the environment variable
NINJAJOBS by running:</para> NINJAJOBS by running:</para>
<screen><userinput remap="pre">sed -i '/int Guess/a \ <screen><userinput remap="pre">sed -i '/int Guess/a \

View File

@ -46,7 +46,7 @@
<screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen> <screen><userinput remap="pre">patch -Np1 -i ../&perl-fix-patch;</userinput></screen>
<para>This version of Perl now builds the Compress::Raw::Zlib and <para>This version of Perl now builds the Compress::Raw::Zlib and
Compress::Raw::BZip2 modules. By Compress::Raw::BZip2 modules. By
default Perl will use an internal copy of the sources for the build. default Perl will use an internal copy of the sources for the build.
Issue the following command so that Perl will use the libraries Issue the following command so that Perl will use the libraries
@ -89,7 +89,7 @@ export BUILD_BZIP2=0</userinput></screen>
<varlistentry> <varlistentry>
<term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term> <term><parameter>-Dpager="/usr/bin/less -isR"</parameter></term>
<listitem> <listitem>
<para>This ensures that <userinput>less</userinput> is used instead <para>This ensures that <userinput>less</userinput> is used instead
of <userinput>more</userinput>.</para> of <userinput>more</userinput>.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>

View File

@ -111,7 +111,7 @@
(replace <replaceable>libfoo</replaceable> with the name of the (replace <replaceable>libfoo</replaceable> with the name of the
library):</para> library):</para>
<screen><userinput role="nodump">grep -l -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps | <screen role="nodump"><userinput>grep -l -e '<replaceable>libfoo</replaceable>.*deleted' /proc/*/maps |
tr -cd 0-9\\n | xargs -r ps u</userinput></screen> tr -cd 0-9\\n | xargs -r ps u</userinput></screen>
<para> <para>

View File

@ -28,7 +28,7 @@
<!-- TODO This note will probably not be needed at the next revision. --> <!-- TODO This note will probably not be needed at the next revision. -->
<note> <note>
<para>This package extracts to the directory <para>This package extracts to the directory
<filename class="directory">procps-3.3.17</filename>, <filename class="directory">procps-3.3.17</filename>,
not the expected not the expected
<filename class="directory">procps-ng-3.3.17</filename>.</para> <filename class="directory">procps-ng-3.3.17</filename>.</para>
</note> </note>
@ -93,7 +93,7 @@ make check</userinput></screen>
<para>Five tests related to pkill are known to fail due to a problem <para>Five tests related to pkill are known to fail due to a problem
with tests that were not updated.</para> with tests that were not updated.</para>
<para>Install the package:</para> <para>Install the package:</para>
<screen><userinput remap="install">make install</userinput></screen> <screen><userinput remap="install">make install</userinput></screen>

View File

@ -103,7 +103,7 @@
<para>If desired, install the preformatted documentation:</para> <para>If desired, install the preformatted documentation:</para>
<screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html
tar --strip-components=1 \ tar --strip-components=1 \
--no-same-owner \ --no-same-owner \
@ -117,9 +117,9 @@ tar --strip-components=1 \
<varlistentry> <varlistentry>
<term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term> <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term>
<listitem> <listitem>
<para>Ensure the installed files have the correct ownership and <para>Ensure the installed files have the correct ownership and
permissions. Without these options, using <application>tar</application> permissions. Without these options, using <application>tar</application>
will install the package files with the upstream creator's values. will install the package files with the upstream creator's values.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -144,7 +144,7 @@ tar --strip-components=1 \
libpython&python-minor;.so and libpython3.so libpython&python-minor;.so and libpython3.so
</seg> </seg>
<seg> <seg>
/usr/include/python&python-minor;, /usr/include/python&python-minor;,
/usr/lib/python3, and /usr/lib/python3, and
/usr/share/doc/python-&python-version; /usr/share/doc/python-&python-version;
</seg> </seg>
@ -162,7 +162,7 @@ tar --strip-components=1 \
<para> <para>
is a <application>Python</application> program that reads is a <application>Python</application> program that reads
<application>Python 2.x</application> source code and applies a <application>Python 2.x</application> source code and applies a
series of fixes to transform it into series of fixes to transform it into
valid <application>Python 3.x</application> code valid <application>Python 3.x</application> code
</para> </para>
<indexterm zone="ch-system-Python"> <indexterm zone="ch-system-Python">

View File

@ -15,7 +15,7 @@
<screen><userinput>rm -rf /tmp/*</userinput></screen> <screen><userinput>rm -rf /tmp/*</userinput></screen>
<para>Now log out and reenter the chroot environment with an updated <para>Now log out and reenter the chroot environment with an updated
chroot command. From now on, use this updated chroot command any time chroot command. From now on, use this updated chroot command any time
you need to reenter the chroot environment after exiting:</para> you need to reenter the chroot environment after exiting:</para>
<screen role="nodump"><userinput>logout <screen role="nodump"><userinput>logout
@ -55,7 +55,7 @@ chroot "$LFS" /usr/bin/env -i \
<screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen> <screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen>
<para>Finally, remove the temporary 'tester' user account created at the <para>Finally, remove the temporary 'tester' user account created at the
beginning of the previous chapter.</para> beginning of the previous chapter.</para>
<screen><userinput>userdel -r tester</userinput></screen> <screen><userinput>userdel -r tester</userinput></screen>

View File

@ -10,7 +10,7 @@
<title>Stripping</title> <title>Stripping</title>
<para>This section is optional. If the intended user is not a <para>This section is optional. If the intended user is not a
programmer and does not plan to do programmer and does not plan to do
any debugging on the system software, the system size can be decreased any debugging on the system software, the system size can be decreased
by about 2 GB by removing the debugging symbols from binaries and by about 2 GB by removing the debugging symbols from binaries and
@ -24,9 +24,9 @@
backup of the LFS system in its current state.</para> backup of the LFS system in its current state.</para>
<para>The debugging symbols for selected libraries are placed <para>The debugging symbols for selected libraries are placed
in separate files. This debugging information is needed if running in separate files. This debugging information is needed if running
regression tests that use <ulink regression tests that use <ulink
url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink url='&blfs-book;/general/valgrind.html'>valgrind</ulink> or <ulink
url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS. url='&blfs-book;/general/gdb.html'>gdb</ulink> later in BLFS.
</para> </para>
@ -41,7 +41,7 @@
rationale to use the <command>install</command> command here.</para> rationale to use the <command>install</command> command here.</para>
<note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems <note><para>The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems
and ld-linux.so.2 on 32-bit systems. The contruct below selects the and ld-linux.so.2 on 32-bit systems. The contruct below selects the
correct name for the current architecture.</para></note> correct name for the current architecture.</para></note>
<!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC --> <!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC -->
@ -50,10 +50,10 @@
<screen><userinput>save_usrlib="$(cd /usr/lib; ls ld-linux*) <screen><userinput>save_usrlib="$(cd /usr/lib; ls ld-linux*)
libc.so.6 libc.so.6
libthread_db.so.1 libthread_db.so.1
libquadmath.so.&libquadmath-version; libquadmath.so.&libquadmath-version;
libstdc++.so.&libstdcpp-version; libstdc++.so.&libstdcpp-version;
libitm.so.&libitm-version; libitm.so.&libitm-version;
libatomic.so.&libatomic-version;" libatomic.so.&libatomic-version;"
cd /usr/lib cd /usr/lib
@ -93,9 +93,9 @@ for i in $(find /usr/lib -type f -name \*.so* ! -name \*dbg) \
$(find /usr/lib -type f -name \*.a) \ $(find /usr/lib -type f -name \*.a) \
$(find /usr/{bin,sbin,libexec} -type f); do $(find /usr/{bin,sbin,libexec} -type f); do
case "$online_usrbin $online_usrlib $save_usrlib" in case "$online_usrbin $online_usrlib $save_usrlib" in
*$(basename $i)* ) *$(basename $i)* )
;; ;;
* ) strip --strip-unneeded $i * ) strip --strip-unneeded $i
;; ;;
esac esac
done done

View File

@ -205,7 +205,7 @@ meson --prefix=/usr \
use a network configuration other than what is provided by use a network configuration other than what is provided by
systemd-networkd:</para> systemd-networkd:</para>
<!-- Observed halting startup with dhcpcd handling the primary NIC --> <!-- Observed halting startup with dhcpcd handling the primary NIC -->
<screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen> <screen><userinput remap="adjust">systemctl disable systemd-time-wait-sync.service</userinput></screen>
<!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out. <!-- dev: 50-pid-max.conf is not removed in BLFS, so I commented the following out.
@ -213,7 +213,7 @@ meson --prefix=/usr \
<!-- <!--
<para>Prevent systemd from resetting the maximum PID value which causes <para>Prevent systemd from resetting the maximum PID value which causes
some problems with packages and units in BLFS:</para> some problems with packages and units in BLFS:</para>
<screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen> <screen><userinput remap="adjust">rm -f /usr/lib/sysctl.d/50-pid-max.conf</userinput></screen>
--> -->
@ -251,8 +251,8 @@ meson --prefix=/usr \
<seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d, <seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
/etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev, /etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
/etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd, /etc/xdg/systemd, /usr/lib/systemd, /usr/lib/udev, /usr/include/systemd,
/usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel, /usr/lib/binfmt.d, /usr/lib/environment.d, /usr/lib/kernel,
/usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/modules-load.d, /usr/lib/sysctl.d, /usr/lib/systemd,
/usr/lib/tmpfiles.d, /usr/lib/tmpfiles.d,
/usr/share/doc/systemd-&systemd-version;, /usr/share/factory, /usr/share/doc/systemd-&systemd-version;, /usr/share/factory,
/usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg> /usr/share/systemd, /var/lib/systemd, and /var/log/journal</seg>
@ -323,7 +323,7 @@ meson --prefix=/usr \
<term><command>init</command></term> <term><command>init</command></term>
<listitem> <listitem>
<para>Is the first process to be started when the kernel has initialized <para>Is the first process to be started when the kernel has initialized
the hardware which takes over the boot process and starts all the hardware which takes over the boot process and starts all
processes according to its configuration files. In this case, it starts processes according to its configuration files. In this case, it starts
systemd</para> systemd</para>
<indexterm zone="ch-system-systemd init"> <indexterm zone="ch-system-systemd init">
@ -389,7 +389,7 @@ meson --prefix=/usr \
<varlistentry id="networkctl"> <varlistentry id="networkctl">
<term><command>networkctl</command></term> <term><command>networkctl</command></term>
<listitem> <listitem>
<para>Is used to introspect and configure the state of the network <para>Is used to introspect and configure the state of the network
links configured by systemd-networkd</para> links configured by systemd-networkd</para>
<indexterm zone="ch-system-systemd networkctl"> <indexterm zone="ch-system-systemd networkctl">
<primary sortas="b-networkctl">networkctl</primary> <primary sortas="b-networkctl">networkctl</primary>
@ -477,7 +477,7 @@ meson --prefix=/usr \
<varlistentry id="shutdown"> <varlistentry id="shutdown">
<term><command>shutdown</command></term> <term><command>shutdown</command></term>
<listitem> <listitem>
<para>Brings the system down in a safe and secure manner, signaling <para>Brings the system down in a safe and secure manner, signaling
all processes and notifying all logged-in users</para> all processes and notifying all logged-in users</para>
<indexterm zone="ch-system-systemd shutdown"> <indexterm zone="ch-system-systemd shutdown">
<primary sortas="b-shutdown">shutdown</primary> <primary sortas="b-shutdown">shutdown</primary>
@ -774,7 +774,7 @@ meson --prefix=/usr \
<varlistentry id="systemd-tty-ask-password-agent"> <varlistentry id="systemd-tty-ask-password-agent">
<term><command>systemd-tty-ask-password-agent</command></term> <term><command>systemd-tty-ask-password-agent</command></term>
<listitem> <listitem>
<para>Is used to list and/or process pending systemd password <para>Is used to list and/or process pending systemd password
requests</para> requests</para>
<indexterm zone="ch-system-systemd systemd-tty-ask-password-agent"> <indexterm zone="ch-system-systemd systemd-tty-ask-password-agent">
<primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary> <primary sortas="b-systemd-tty-ask-password-agent">systemd-tty-ask-password-agent</primary>
@ -807,9 +807,9 @@ meson --prefix=/usr \
<varlistentry id="udevadm"> <varlistentry id="udevadm">
<term><command>udevadm</command></term> <term><command>udevadm</command></term>
<listitem> <listitem>
<para>Is a generic udev administration tool which controls the udevd <para>Is a generic udev administration tool which controls the udevd
daemon, provides info from the Udev hardware database, monitors daemon, provides info from the Udev hardware database, monitors
uevents, waits for uevents to finish, tests udev configuration, and uevents, waits for uevents to finish, tests udev configuration, and
triggers uevents for a given device</para> triggers uevents for a given device</para>
<indexterm zone="ch-system-systemd udevadm"> <indexterm zone="ch-system-systemd udevadm">
<primary sortas="b-udevadm">udevadm</primary> <primary sortas="b-udevadm">udevadm</primary>

View File

@ -91,7 +91,7 @@
<segtitle>Installed programs</segtitle> <segtitle>Installed programs</segtitle>
<seglistitem> <seglistitem>
<seg>bootlogd, fstab-decode, halt, init, killall5, <seg>bootlogd, fstab-decode, halt, init, killall5,
poweroff (link to halt), reboot (link to halt), runlevel, poweroff (link to halt), reboot (link to halt), runlevel,
shutdown, and telinit (link to init)</seg> shutdown, and telinit (link to init)</seg>
</seglistitem> </seglistitem>

View File

@ -51,7 +51,7 @@
most important tools are working properly.</para> most important tools are working properly.</para>
<!-- <para>Note that the Tcl package used here is a minimal version needed <!-- <para>Note that the Tcl package used here is a minimal version needed
to run the LFS tests. For the full package, see the to run the LFS tests. For the full package, see the
<ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>--> <ulink url='&blfs-book;general/tcl.html'>BLFS Tcl procedures</ulink>.</para>-->
<para>First, unpack the documentation by issuing the following command:</para> <para>First, unpack the documentation by issuing the following command:</para>
@ -140,10 +140,16 @@ unset SRCDIR</userinput></screen>
<screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen> <screen><userinput remap="install">ln -sfv tclsh&tcl-major-version; /usr/bin/tclsh</userinput></screen>
<para>Finally, rename a man page that conflicts with a Perl man page:</para> <para>Rename a man page that conflicts with a Perl man page:</para>
<screen><userinput remap="install">mv /usr/share/man/man3/{Thread,Tcl_Thread}.3</userinput></screen> <screen><userinput remap="install">mv /usr/share/man/man3/{Thread,Tcl_Thread}.3</userinput></screen>
<para>If you downloaded the optional documentation, install it by issuing
the following commands:</para>
<screen><userinput remap="install">mkdir -v -p /usr/share/doc/tcl-&tcl-version;
cp -v -r ../html/* /usr/share/doc/tcl-&tcl-version;</userinput></screen>
</sect2> </sect2>
<sect2 id="contents-tcl" role="content"> <sect2 id="contents-tcl" role="content">
@ -155,11 +161,11 @@ unset SRCDIR</userinput></screen>
<seglistitem> <seglistitem>
<seg> <seg>
tclsh (link to tclsh&tcl-major-version;) and tclsh (link to tclsh&tcl-major-version;) and
tclsh&tcl-major-version; tclsh&tcl-major-version;
</seg> </seg>
<seg> <seg>
libtcl&tcl-major-version;.so and libtcl&tcl-major-version;.so and
libtclstub&tcl-major-version;.a libtclstub&tcl-major-version;.a
</seg> </seg>
</seglistitem> </seglistitem>

View File

@ -196,7 +196,7 @@ popd</userinput></screen>
<varlistentry id="texi2any"> <varlistentry id="texi2any">
<term><command>texi2any</command></term> <term><command>texi2any</command></term>
<listitem> <listitem>
<para>Translate Texinfo source documentation to <para>Translate Texinfo source documentation to
various other formats</para> various other formats</para>
<indexterm zone="ch-system-texinfo texi2any"> <indexterm zone="ch-system-texinfo texi2any">
<primary sortas="b-texiany">texi2any</primary> <primary sortas="b-texiany">texi2any</primary>

View File

@ -75,7 +75,7 @@
runstatedir=/run</userinput></screen> runstatedir=/run</userinput></screen>
<para>The --disable and --without options prevent warnings about <para>The --disable and --without options prevent warnings about
building components that require packages not in LFS or are building components that require packages not in LFS or are
inconsistent with programs installed by other packages.</para> inconsistent with programs installed by other packages.</para>
<para>Compile the package:</para> <para>Compile the package:</para>
@ -138,14 +138,14 @@ su tester -c "make -k check"</userinput></screen>
swapoff (link to swapon), swapon, switch_root, taskset, ul, swapoff (link to swapon), swapon, switch_root, taskset, ul,
umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis, umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis,
wipefs, x86_64, and zramctl</seg> wipefs, x86_64, and zramctl</seg>
<seg>libblkid.so, libfdisk.so, libmount.so, <seg>libblkid.so, libfdisk.so, libmount.so,
libsmartcols.so, and libuuid.so</seg> libsmartcols.so, and libuuid.so</seg>
<seg>/usr/include/blkid, <seg>/usr/include/blkid,
/usr/include/libfdisk, /usr/include/libfdisk,
/usr/include/libmount, /usr/include/libmount,
/usr/include/libsmartcols, /usr/include/libsmartcols,
/usr/include/uuid, /usr/include/uuid,
/usr/share/doc/util-linux-&util-linux-version;, /usr/share/doc/util-linux-&util-linux-version;,
and /var/lib/hwclock</seg> and /var/lib/hwclock</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -592,8 +592,8 @@ su tester -c "make -k check"</userinput></screen>
<varlistentry id="last"> <varlistentry id="last">
<term><command>last</command></term> <term><command>last</command></term>
<listitem> <listitem>
<para>Shows which users last logged in (and out), searching back <para>Shows which users last logged in (and out), searching back
through the <filename>/var/log/wtmp</filename> file; it also shows through the <filename>/var/log/wtmp</filename> file; it also shows
system boots, shutdowns, and run-level changes</para> system boots, shutdowns, and run-level changes</para>
<indexterm zone="ch-system-util-linux last"> <indexterm zone="ch-system-util-linux last">
<primary sortas="b-last">last</primary> <primary sortas="b-last">last</primary>
@ -604,7 +604,7 @@ su tester -c "make -k check"</userinput></screen>
<varlistentry id="lastb"> <varlistentry id="lastb">
<term><command>lastb</command></term> <term><command>lastb</command></term>
<listitem> <listitem>
<para>Shows the failed login attempts, as logged in <para>Shows the failed login attempts, as logged in
<filename>/var/log/btmp</filename></para> <filename>/var/log/btmp</filename></para>
<indexterm zone="ch-system-util-linux lastb"> <indexterm zone="ch-system-util-linux lastb">
<primary sortas="b-lastb">lastb</primary> <primary sortas="b-lastb">lastb</primary>
@ -759,7 +759,7 @@ su tester -c "make -k check"</userinput></screen>
<varlistentry id="mesg"> <varlistentry id="mesg">
<term><command>mesg</command></term> <term><command>mesg</command></term>
<listitem> <listitem>
<para>Controls whether other users can send messages to the current <para>Controls whether other users can send messages to the current
user's terminal</para> user's terminal</para>
<indexterm zone="ch-system-util-linux mesg"> <indexterm zone="ch-system-util-linux mesg">
<primary sortas="b-mesg">mesg</primary> <primary sortas="b-mesg">mesg</primary>
@ -1260,7 +1260,7 @@ su tester -c "make -k check"</userinput></screen>
<varlistentry id="zramctl"> <varlistentry id="zramctl">
<term><command>zramctl</command></term> <term><command>zramctl</command></term>
<listitem> <listitem>
<para>A program to set up and control zram (compressed ram disk) <para>A program to set up and control zram (compressed ram disk)
devices</para> devices</para>
<indexterm zone="ch-system-util-linux zramctl"> <indexterm zone="ch-system-util-linux zramctl">
<primary sortas="b-zramctl">zramctl</primary> <primary sortas="b-zramctl">zramctl</primary>

View File

@ -62,8 +62,8 @@
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>
<para>To prepare the tests, ensure that user <para>To prepare the tests, ensure that user
<systemitem class="username">tester</systemitem> can write <systemitem class="username">tester</systemitem> can write
to the source tree:</para> to the source tree:</para>
<screen><userinput remap="test">chown -Rv tester .</userinput></screen> <screen><userinput remap="test">chown -Rv tester .</userinput></screen>
@ -133,7 +133,7 @@ done</userinput></screen>
" Ensure defaults are set before customizing settings, not after " Ensure defaults are set before customizing settings, not after
source $VIMRUNTIME/defaults.vim source $VIMRUNTIME/defaults.vim
let skip_defaults_vim=1 let skip_defaults_vim=1
set nocompatible set nocompatible
set backspace=2 set backspace=2

View File

@ -74,34 +74,34 @@
<seglistitem> <seglistitem>
<seg> <seg>
lzcat (link to xz), lzcat (link to xz),
lzcmp (link to xzdiff), lzcmp (link to xzdiff),
lzdiff (link to xzdiff), lzdiff (link to xzdiff),
lzegrep (link to xzgrep), lzegrep (link to xzgrep),
lzfgrep (link to xzgrep), lzfgrep (link to xzgrep),
lzgrep (link to xzgrep), lzgrep (link to xzgrep),
lzless (link to xzless), lzless (link to xzless),
lzma (link to xz), lzma (link to xz),
lzmadec, lzmadec,
lzmainfo, lzmainfo,
lzmore (link to xzmore), lzmore (link to xzmore),
unlzma (link to xz), unlzma (link to xz),
unxz (link to xz), unxz (link to xz),
xz, xz,
xzcat (link to xz), xzcat (link to xz),
xzcmp (link to xzdiff), xzcmp (link to xzdiff),
xzdec, xzdec,
xzdiff, xzdiff,
xzegrep (link to xzgrep), xzegrep (link to xzgrep),
xzfgrep (link to xzgrep), xzfgrep (link to xzgrep),
xzgrep, xzgrep,
xzless, and xzless, and
xzmore</seg> xzmore</seg>
<seg> <seg>
liblzma.so liblzma.so
</seg> </seg>
<seg> <seg>
/usr/include/lzma and /usr/include/lzma and
/usr/share/doc/xz-&xz-version; /usr/share/doc/xz-&xz-version;
</seg> </seg>
</seglistitem> </seglistitem>

View File

@ -73,10 +73,10 @@
<segtitle>Installed library</segtitle> <segtitle>Installed library</segtitle>
<seglistitem> <seglistitem>
<seg>zstd, <seg>zstd,
zstdcat (link to zstd), zstdcat (link to zstd),
zstdgrep, zstdgrep,
zstdless, zstdless,
zstdmt (link to zstd), and zstdmt (link to zstd), and
unzstd (link to zstd) unzstd (link to zstd)
</seg> </seg>

View File

@ -24,7 +24,7 @@
<title/> <title/>
<para>The LFS-Bootscripts package contains a set of scripts to start/stop <para>The LFS-Bootscripts package contains a set of scripts to start/stop
the LFS system at bootup/shutdown. the LFS system at bootup/shutdown.
The configuration files and procedures needed to The configuration files and procedures needed to
customize the boot process are described in the following sections.</para> customize the boot process are described in the following sections.</para>

View File

@ -25,7 +25,7 @@
language-specific HOWTOs can also help with this, see <ulink language-specific HOWTOs can also help with this, see <ulink
url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>.
Examine the output of <command>localectl list-keymaps</command> for a list of Examine the output of <command>localectl list-keymaps</command> for a list of
valid console keymaps. Look in the valid console keymaps. Look in the
<filename class="directory">/usr/share/consolefonts</filename> <filename class="directory">/usr/share/consolefonts</filename>
directory for valid screen fonts.</para> directory for valid screen fonts.</para>

View File

@ -29,7 +29,7 @@
additional scripts that perform the tasks required to initialize the additional scripts that perform the tasks required to initialize the
system.</para> system.</para>
<para>The <command>init</command> program is controlled by the <para>The <command>init</command> program is controlled by the
<filename>/etc/inittab</filename> file and is organized into run levels that <filename>/etc/inittab</filename> file and is organized into run levels that
can be run by the user:</para> can be run by the user:</para>
@ -61,10 +61,10 @@
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>May be slower to boot. A medium speed base LFS system <para>May be slower to boot. A medium speed base LFS system
takes 8-12 seconds where the boot time is measured from the takes 8-12 seconds where the boot time is measured from the
first kernel message to the login prompt. Network first kernel message to the login prompt. Network
connectivity is typically established about 2 seconds connectivity is typically established about 2 seconds
after the login prompt.</para> after the login prompt.</para>
</listitem> </listitem>

View File

@ -80,7 +80,7 @@ LC_ALL=&lt;locale name&gt; locale int_prefix</userinput></screen>
encoding used by the locale, the local currency, and the prefix to dial encoding used by the locale, the local currency, and the prefix to dial
before the telephone number in order to get into the country. If any of the before the telephone number in order to get into the country. If any of the
commands above fail with a message similar to the one shown below, this means commands above fail with a message similar to the one shown below, this means
that your locale was either not installed in Chapter&nbsp;8 or is not that your locale was either not installed in Chapter&nbsp;8 or is not
supported by the default installation of Glibc.</para> supported by the default installation of Glibc.</para>
<screen><computeroutput>locale: Cannot set LC_* to default locale: No such file or directory</computeroutput></screen> <screen><computeroutput>locale: Cannot set LC_* to default locale: No such file or directory</computeroutput></screen>
@ -142,7 +142,7 @@ EOF</userinput></screen>
substitutes them with question marks in that locale. Also, an attempt to send substitutes them with question marks in that locale. Also, an attempt to send
mail with such characters from Mutt or Pine results in non-RFC-conforming mail with such characters from Mutt or Pine results in non-RFC-conforming
messages being sent (the charset in the outgoing mail is indicated as <quote>unknown messages being sent (the charset in the outgoing mail is indicated as <quote>unknown
8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only 8-bit</quote>). It's suggested that you use the <quote>C</quote> locale only
if you are certain that you will never need 8-bit characters.</para> if you are certain that you will never need 8-bit characters.</para>
<!-- <!--

View File

@ -31,7 +31,7 @@
will assign network card interface names based on system physical will assign network card interface names based on system physical
characteristics such as enp2s1. If you are not sure what your interface characteristics such as enp2s1. If you are not sure what your interface
name is, you can always run <command>ip link</command> or <command>ls name is, you can always run <command>ip link</command> or <command>ls
/sys/class/net</command> after you have booted your system. /sys/class/net</command> after you have booted your system.
</para></note> </para></note>
<para>The following command creates a sample file for the <para>The following command creates a sample file for the
@ -157,21 +157,21 @@ EOF</userinput></screen>
<indexterm zone="ch-config-hosts"> <indexterm zone="ch-config-hosts">
<primary sortas="e-/etc/hosts">/etc/hosts</primary> <primary sortas="e-/etc/hosts">/etc/hosts</primary>
</indexterm> </indexterm>
<indexterm zone="ch-config-hosts"> <indexterm zone="ch-config-hosts">
<primary sortas="d-localnet">localnet</primary> <primary sortas="d-localnet">localnet</primary>
<secondary>/etc/hosts</secondary> <secondary>/etc/hosts</secondary>
</indexterm> </indexterm>
<indexterm zone="ch-config-hosts"> <indexterm zone="ch-config-hosts">
<primary sortas="d-network">network</primary> <primary sortas="d-network">network</primary>
<secondary>/etc/hosts</secondary> <secondary>/etc/hosts</secondary>
</indexterm> </indexterm>
<para>Decide on the IP address, fully-qualified domain name (FQDN), and <para>Decide on the IP address, fully-qualified domain name (FQDN), and
possible aliases for use in the <filename>/etc/hosts</filename> file. The possible aliases for use in the <filename>/etc/hosts</filename> file. The
syntax is:</para> syntax is:</para>
<screen><literal>IP_address myhost.example.org aliases</literal></screen> <screen><literal>IP_address myhost.example.org aliases</literal></screen>
<para>Unless the computer is to be visible to the Internet (i.e., there is <para>Unless the computer is to be visible to the Internet (i.e., there is
@ -186,13 +186,13 @@ EOF</userinput></screen>
<para>x can be any number in the range 16-31. y can be any number in the <para>x can be any number in the range 16-31. y can be any number in the
range 0-255.</para> range 0-255.</para>
<para>A valid private IP address could be 192.168.1.1. A valid FQDN for <para>A valid private IP address could be 192.168.1.1. A valid FQDN for
this IP could be lfs.example.org.</para> this IP could be lfs.example.org.</para>
<para>Even if not using a network card, a valid FQDN is still required. <para>Even if not using a network card, a valid FQDN is still required.
This is necessary for certain programs to operate correctly.</para> This is necessary for certain programs to operate correctly.</para>
<para>Create the <filename>/etc/hosts</filename> file by running:</para> <para>Create the <filename>/etc/hosts</filename> file by running:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF" <screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
@ -209,7 +209,7 @@ ff02::2 ip6-allrouters
EOF</userinput></screen> EOF</userinput></screen>
<para>The <replaceable>&lt;192.168.1.1&gt;</replaceable>, <para>The <replaceable>&lt;192.168.1.1&gt;</replaceable>,
<replaceable>&lt;FQDN&gt;</replaceable>, and <replaceable>&lt;FQDN&gt;</replaceable>, and
<replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be <replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be
changed for specific uses or requirements (if assigned an IP address by a changed for specific uses or requirements (if assigned an IP address by a
network/system administrator and the machine will be connected to an network/system administrator and the machine will be connected to an

View File

@ -38,7 +38,7 @@
<filename class="extension">.link</filename>, <filename class="extension">.link</filename>,
<filename class="extension">.netdev</filename> and <filename class="extension">.netdev</filename> and
<filename class="extension">.network</filename> files. For detailed <filename class="extension">.network</filename> files. For detailed
descriptions and example contents of these configuration files, consult descriptions and example contents of these configuration files, consult
the <filename>systemd-link(5)</filename>, the <filename>systemd-link(5)</filename>,
<filename>systemd-netdev(5)</filename> and <filename>systemd-netdev(5)</filename> and
<filename>systemd-network(5)</filename> manual pages.</para> <filename>systemd-network(5)</filename> manual pages.</para>
@ -57,7 +57,7 @@
For most systems, there is only one network interface for For most systems, there is only one network interface for
each type of connection. For example, the classic interface each type of connection. For example, the classic interface
name for a wired connection is eth0. A wireless connection name for a wired connection is eth0. A wireless connection
will usually have the name wifi0 or wlan0. will usually have the name wifi0 or wlan0.
</para> </para>
<para> <para>
@ -75,8 +75,8 @@
<listitem> <listitem>
<para> <para>
Create a manual naming scheme, for example by naming the Create a manual naming scheme, for example by naming the
interfaces something like "internet0", "dmz0", or "lan0". interfaces something like "internet0", "dmz0", or "lan0".
To do that, create .link files in /etc/systemd/network/ that To do that, create .link files in /etc/systemd/network/ that
select an explicit name or a better naming scheme for your select an explicit name or a better naming scheme for your
network interfaces. For example: network interfaces. For example:
</para> </para>
@ -91,13 +91,13 @@ Name=ether0</literal>
EOF</userinput></screen> EOF</userinput></screen>
<para> <para>
See the man page systemd.link(5) for more information. See the man page systemd.link(5) for more information.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the
kernel command line. kernel command line.
</para> </para>
</listitem> </listitem>
@ -209,7 +209,7 @@ EOF</userinput></screen>
with the IP address of the DNS server most appropriate for your setup. with the IP address of the DNS server most appropriate for your setup.
There will often be more than one entry (requirements demand secondary There will often be more than one entry (requirements demand secondary
servers for fallback capability). If you only need or want one DNS server, servers for fallback capability). If you only need or want one DNS server,
remove the second <emphasis>nameserver</emphasis> line from the file. remove the second <emphasis>nameserver</emphasis> line from the file.
The IP address may also be a router on the local network. Another option The IP address may also be a router on the local network. Another option
is to use the Google Public DNS service using the IP addresses below as is to use the Google Public DNS service using the IP addresses below as
nameservers.</para> nameservers.</para>
@ -252,12 +252,12 @@ EOF</userinput></screen>
<indexterm zone="ch-config-hosts"> <indexterm zone="ch-config-hosts">
<primary sortas="e-/etc/hosts">/etc/hosts</primary> <primary sortas="e-/etc/hosts">/etc/hosts</primary>
</indexterm> </indexterm>
<indexterm zone="ch-config-hosts"> <indexterm zone="ch-config-hosts">
<primary sortas="d-localnet">localnet</primary> <primary sortas="d-localnet">localnet</primary>
<secondary>/etc/hosts</secondary> <secondary>/etc/hosts</secondary>
</indexterm> </indexterm>
<indexterm zone="ch-config-hosts"> <indexterm zone="ch-config-hosts">
<primary sortas="d-network">network</primary> <primary sortas="d-network">network</primary>
<secondary>/etc/hosts</secondary> <secondary>/etc/hosts</secondary>

View File

@ -103,7 +103,7 @@ LC_ALL=&lt;locale name&gt; locale int_prefix</userinput></screen>
encoding used by the locale, the local currency, and the prefix to dial encoding used by the locale, the local currency, and the prefix to dial
before the telephone number in order to get into the country. If any of the before the telephone number in order to get into the country. If any of the
commands above fail with a message similar to the one shown below, this means commands above fail with a message similar to the one shown below, this means
that your locale was either not installed in <xref linkend="ch-system-glibc"/> that your locale was either not installed in <xref linkend="ch-system-glibc"/>
or is not supported by the default installation of Glibc.</para> or is not supported by the default installation of Glibc.</para>
<screen><computeroutput>locale: Cannot set LC_* to default locale: No such file or directory</computeroutput></screen> <screen><computeroutput>locale: Cannot set LC_* to default locale: No such file or directory</computeroutput></screen>

View File

@ -22,7 +22,7 @@
Intel and Realtek, the network card manufactured by Intel may become eth0 Intel and Realtek, the network card manufactured by Intel may become eth0
and the Realtek card becomes eth1. In some cases, after a reboot the cards and the Realtek card becomes eth1. In some cases, after a reboot the cards
could get renumbered the other way around.</para> could get renumbered the other way around.</para>
<para>In the new naming scheme, typical network device names would then <para>In the new naming scheme, typical network device names would then
be something like enp5s0 or wlp3s0. If this naming convention is not be something like enp5s0 or wlp3s0. If this naming convention is not
desired, the traditional naming scheme or a custom scheme can be desired, the traditional naming scheme or a custom scheme can be
@ -30,20 +30,20 @@
<sect3> <sect3>
<title>Disabling Persistent Naming on the Kernel Command Line</title> <title>Disabling Persistent Naming on the Kernel Command Line</title>
<para>The traditional naming scheme using eth0, eth1, etc can be <para>The traditional naming scheme using eth0, eth1, etc can be
restored by adding <userinput>net.ifnames=0</userinput> on the restored by adding <userinput>net.ifnames=0</userinput> on the
kernel command line. This is most appropriate for those systems kernel command line. This is most appropriate for those systems
that have only one ethernet device of the same type. Laptops that have only one ethernet device of the same type. Laptops
often have multiple ethernet connections that are named eth0 and often have multiple ethernet connections that are named eth0 and
wlan0 and are also candidates for this method. The command line wlan0 and are also candidates for this method. The command line
is passed in the GRUB configuration file. is passed in the GRUB configuration file.
See <xref linkend="grub-cfg"/>.</para> See <xref linkend="grub-cfg"/>.</para>
</sect3> </sect3>
<sect3> <sect3>
<title>Creating Custom Udev Rules</title> <title>Creating Custom Udev Rules</title>
<para>The naming scheme can be customized by creating custom udev <para>The naming scheme can be customized by creating custom udev
rules. A script has been included that generates the initial rules. rules. A script has been included that generates the initial rules.
Generate these rules by running:</para> Generate these rules by running:</para>
@ -61,7 +61,7 @@
the network rules file may not have been generated because addresses the network rules file may not have been generated because addresses
are not consistently assigned. In these cases, this method cannot are not consistently assigned. In these cases, this method cannot
be used.</para></note> be used.</para></note>
<para>The file begins with a comment block followed by two lines for each <para>The file begins with a comment block followed by two lines for each
NIC. The first line for each NIC is a commented description showing its NIC. The first line for each NIC is a commented description showing its
hardware IDs (e.g. its PCI vendor and device IDs, if it's a PCI card), hardware IDs (e.g. its PCI vendor and device IDs, if it's a PCI card),
@ -69,11 +69,11 @@
the hardware ID nor the driver is used to determine which name to give an the hardware ID nor the driver is used to determine which name to give an
interface; this information is only for reference. The second line is the interface; this information is only for reference. The second line is the
udev rule that matches this NIC and actually assigns it a name.</para> udev rule that matches this NIC and actually assigns it a name.</para>
<para>All udev rules are made up of several keys, separated by commas and <para>All udev rules are made up of several keys, separated by commas and
optional whitespace. This rule's keys and an explanation of each of them optional whitespace. This rule's keys and an explanation of each of them
are as follows:</para> are as follows:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para><literal>SUBSYSTEM=="net"</literal> - This tells udev to ignore <para><literal>SUBSYSTEM=="net"</literal> - This tells udev to ignore
@ -106,7 +106,7 @@
udev will assign to this interface.</para> udev will assign to this interface.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>The value of <literal>NAME</literal> is the important part. Make sure <para>The value of <literal>NAME</literal> is the important part. Make sure
you know which name has been assigned to each of your network cards before you know which name has been assigned to each of your network cards before
proceeding, and be sure to use that <literal>NAME</literal> value when proceeding, and be sure to use that <literal>NAME</literal> value when

Some files were not shown because too many files have changed in this diff Show More