mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Brought all occurences of LFS-Bootscripts into conformity.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6288 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
4d938efaa0
commit
fde4f7de29
@ -35,7 +35,7 @@ From Scratch (ALFS), BLFS and hints project logo
|
|||||||
creator</para></listitem>
|
creator</para></listitem>
|
||||||
|
|
||||||
<listitem><para><ulink url="mailto:nathan@linuxfromscratch.org">Nathan
|
<listitem><para><ulink url="mailto:nathan@linuxfromscratch.org">Nathan
|
||||||
Coulson</ulink> <nathan@linuxfromscratch.org> – LFS bootscripts
|
Coulson</ulink> <nathan@linuxfromscratch.org> – LFS-Bootscripts
|
||||||
maintainer</para></listitem>
|
maintainer</para></listitem>
|
||||||
|
|
||||||
<listitem><para><ulink url="mailto:jeroen@linuxfromscratch.org">Jeroen
|
<listitem><para><ulink url="mailto:jeroen@linuxfromscratch.org">Jeroen
|
||||||
@ -90,7 +90,7 @@ Editor, hints and patches projects maintainer</para></listitem>
|
|||||||
|
|
||||||
<listitem><para><ulink url="mailto:jeremy@linuxfromscratch.org">Jeremy
|
<listitem><para><ulink url="mailto:jeremy@linuxfromscratch.org">Jeremy
|
||||||
Utley</ulink> <jeremy@linuxfromscratch.org> – LFS Technical
|
Utley</ulink> <jeremy@linuxfromscratch.org> – LFS Technical
|
||||||
Writer, Bugzilla maintainer, LFS bootscripts maintainer, LFS Server
|
Writer, Bugzilla maintainer, LFS-Bootscripts maintainer, LFS Server
|
||||||
co-administrator</para></listitem>
|
co-administrator</para></listitem>
|
||||||
|
|
||||||
<listitem><para><ulink url="mailto:zwinkles@gmail.com">Zack
|
<listitem><para><ulink url="mailto:zwinkles@gmail.com">Zack
|
||||||
|
@ -91,6 +91,9 @@ First a summary, then a detailed log.</para>
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem><para>July 1st, 2005 [archaic]: Brought all occurences of
|
||||||
|
LFS-Bootscripts into conformity.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>June 30th, 2005 [archaic]: Several minor wording changes in
|
<listitem><para>June 30th, 2005 [archaic]: Several minor wording changes in
|
||||||
chapter 6 (matt).</para></listitem>
|
chapter 6 (matt).</para></listitem>
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ waiting for package compilation to complete, a user can switch to a
|
|||||||
different virtual console (VC) or X desktop and continue using the
|
different virtual console (VC) or X desktop and continue using the
|
||||||
computer as normal.</para>
|
computer as normal.</para>
|
||||||
|
|
||||||
<para>To finish the installation, the bootscripts are set up in <xref
|
<para>To finish the installation, the LFS-Bootscripts are set up in <xref
|
||||||
linkend="chapter-bootscripts"/>, and the kernel and boot loader are set
|
linkend="chapter-bootscripts"/>, and the kernel and boot loader are set
|
||||||
up in <xref linkend="chapter-bootable"/>. <xref
|
up in <xref linkend="chapter-bootable"/>. <xref
|
||||||
linkend="chapter-finalizing"/> contains information on furthering the
|
linkend="chapter-finalizing"/> contains information on furthering the
|
||||||
|
@ -30,8 +30,8 @@ filesystem (such as <systemitem class="filesystem">tmpfs</systemitem>) on the
|
|||||||
<filename class="directory">/dev</filename> directory, and allow the devices to
|
<filename class="directory">/dev</filename> directory, and allow the devices to
|
||||||
be created dynamically on that virtual filesystem as they are detected or
|
be created dynamically on that virtual filesystem as they are detected or
|
||||||
accessed. This is generally done during the boot process. Since this new system
|
accessed. This is generally done during the boot process. Since this new system
|
||||||
has not been booted, it is necessary to do what the bootscripts would otherwise
|
has not been booted, it is necessary to do what the LFS-Bootscripts package would
|
||||||
do by mounting <filename class="directory">/dev</filename>:</para>
|
otherwise do by mounting <filename class="directory">/dev</filename>:</para>
|
||||||
|
|
||||||
<screen><userinput>mount -n -t tmpfs none /dev</userinput></screen>
|
<screen><userinput>mount -n -t tmpfs none /dev</userinput></screen>
|
||||||
|
|
||||||
@ -51,9 +51,9 @@ chown root:tty /dev/{console,ptmx,tty}</userinput></screen>
|
|||||||
<!-- -->
|
<!-- -->
|
||||||
|
|
||||||
<para>There are some symlinks and directories required by LFS that are created
|
<para>There are some symlinks and directories required by LFS that are created
|
||||||
during system startup by the bootscripts. Since this is a chroot environment and
|
during system startup by the LFS-Bootscripts package. Since this is a chroot
|
||||||
not a booted environment, those symlinks and directories need to be created
|
environment and not a booted environment, those symlinks and directories need to
|
||||||
here:</para>
|
be created here:</para>
|
||||||
|
|
||||||
<screen><userinput>ln -s /proc/self/fd /dev/fd
|
<screen><userinput>ln -s /proc/self/fd /dev/fd
|
||||||
ln -s /proc/self/fd/0 /dev/stdin
|
ln -s /proc/self/fd/0 /dev/stdin
|
||||||
|
@ -42,13 +42,13 @@ running kernel.</para>
|
|||||||
|
|
||||||
<screen><userinput>cp etc/hotplug/pnp.distmap /etc/hotplug</userinput></screen>
|
<screen><userinput>cp etc/hotplug/pnp.distmap /etc/hotplug</userinput></screen>
|
||||||
|
|
||||||
<para>Remove the init script that Hotplug installs, since we're going to be
|
<para>Remove the init script that Hotplug installs since we are going to be
|
||||||
using the script included with LFS-Bootscripts:</para>
|
using the script included in the LFS-Bootscripts package:</para>
|
||||||
|
|
||||||
<screen><userinput>rm -rf /etc/init.d</userinput></screen>
|
<screen><userinput>rm -rf /etc/init.d</userinput></screen>
|
||||||
|
|
||||||
<para>Network device hotplugging is not supported by LFS-Bootscripts yet. For
|
<para>Network device hotplugging is not yet supported by the LFS-Bootscripts
|
||||||
that reason, remove the network hotplug agent:</para>
|
package. For that reason, remove the network hotplug agent:</para>
|
||||||
|
|
||||||
<screen><userinput>rm -f /etc/hotplug/net.agent</userinput></screen>
|
<screen><userinput>rm -f /etc/hotplug/net.agent</userinput></screen>
|
||||||
|
|
||||||
@ -91,11 +91,11 @@ sortas="b-hotplug">hotplug</primary></indexterm>
|
|||||||
<term><command>/etc/hotplug/*.rc</command></term>
|
<term><command>/etc/hotplug/*.rc</command></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>These scripts are used for cold plugging, i.e., detecting and acting upon
|
<para>These scripts are used for cold plugging, i.e., detecting and acting upon
|
||||||
hardware already present during system startup. They are called by the
|
hardware already present during system startup. They are called by the
|
||||||
<filename>hotplug</filename> initscript that comes from the LFS-Bootscripts
|
<filename>hotplug</filename> initscript included in the LFS-Bootscripts package.
|
||||||
package. The <command>*.rc</command> scripts try to recover hotplug events that
|
The <command>*.rc</command> scripts try to recover hotplug events that were lost
|
||||||
were lost during system boot because, for example, the root filesystem was not
|
during system boot because, for example, the root filesystem was not mounted by
|
||||||
mounted by the kernel</para>
|
the kernel</para>
|
||||||
<indexterm zone="ch-system-hotplug hotplug-rc"><primary
|
<indexterm zone="ch-system-hotplug hotplug-rc"><primary
|
||||||
sortas="d-/etc/hotplug/*.rc">/etc/hotplug/*.rc</primary></indexterm>
|
sortas="d-/etc/hotplug/*.rc">/etc/hotplug/*.rc</primary></indexterm>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -56,10 +56,10 @@
|
|||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>SBINDIR=/sbin</parameter></term>
|
<term><parameter>SBINDIR=/sbin</parameter></term>
|
||||||
<listitem><para>This makes sure that the IPRoute2 binaries will install into
|
<listitem><para>This ensures that the IPRoute2 binaries will install into
|
||||||
<filename class="directory">/sbin</filename>. This is the correct
|
<filename class="directory">/sbin</filename>. This is the correct location
|
||||||
location according to the FHS, because some of the IPRoute2 binaries are used
|
according to the FHS, because some of the IPRoute2 binaries are used by
|
||||||
in the bootscripts.</para>
|
the LFS-Bootscripts package.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
@ -40,12 +40,11 @@ GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
|||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>--exec-prefix=""</parameter></term>
|
<term><parameter>--exec-prefix=""</parameter></term>
|
||||||
<listitem><para>This causes the binaries to be installed in <filename
|
<listitem><para>This ensures that the Psmisc binaries will install into
|
||||||
class="directory">/bin</filename> instead of <filename
|
<filename class="directory">/bin</filename> instead of <filename
|
||||||
class="directory">/usr/bin</filename>. Because the Psmisc programs are
|
class="directory">/usr/bin</filename>. This is the correct location according to
|
||||||
often used in bootscripts, they should be available when the <filename
|
the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts
|
||||||
class="directory">/usr</filename> file system is not
|
package.</para></listitem>
|
||||||
mounted.</para></listitem>
|
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ by Glibc) from being built and installed again.</para></listitem>
|
|||||||
<para>This package does not come with a test suite.</para>
|
<para>This package does not come with a test suite.</para>
|
||||||
|
|
||||||
<para>Install the package and move the <command>logger</command> binary to
|
<para>Install the package and move the <command>logger</command> binary to
|
||||||
<filename class="directory">/bin</filename> as it is needed by the bootscripts:
|
<filename class="directory">/bin</filename> as it is needed by the
|
||||||
</para>
|
LFS-Bootscripts package:</para>
|
||||||
|
|
||||||
<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install
|
<screen><userinput>make HAVE_KILL=yes HAVE_SLN=yes install
|
||||||
mv /usr/bin/logger /bin</userinput></screen>
|
mv /usr/bin/logger /bin</userinput></screen>
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
<indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>
|
<indexterm zone="ch-scripts-bootscripts"><primary sortas="a-Bootscripts">Bootscripts</primary></indexterm>
|
||||||
|
|
||||||
<sect2 role="package"><title/>
|
<sect2 role="package"><title/>
|
||||||
<para>The LFS-Bootscripts package contains a set of bootscripts.</para>
|
<para>The LFS-Bootscripts package contains a set of scripts to start/stop the
|
||||||
|
LFS system at bootup/shutdown.</para>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
@ -33,7 +34,7 @@
|
|||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-bootscripts</title>
|
<sect2 id="contents-bootscripts" role="content"><title>Contents of LFS-Bootscripts</title>
|
||||||
|
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>Installed scripts</segtitle>
|
<segtitle>Installed scripts</segtitle>
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
<title>Introduction</title>
|
<title>Introduction</title>
|
||||||
<?dbhtml filename="introduction.html"?>
|
<?dbhtml filename="introduction.html"?>
|
||||||
|
|
||||||
<para>This chapter details how to install the bootscripts and set them up
|
<para>This chapter details how to install and configure the LFS-Bootscripts
|
||||||
properly. Most of these scripts will work without modification, but a
|
package. Most of these scripts will work without modification, but a few require
|
||||||
few require additional configuration files because they deal with
|
additional configuration files because they deal with hardware-dependent
|
||||||
hardware-dependent information.</para>
|
information.</para>
|
||||||
|
|
||||||
<para>System-V style init scripts are employed in this book because they are
|
<para>System-V style init scripts are employed in this book because they are
|
||||||
widely used. For additional options, a hint detailing the BSD style
|
widely used. For additional options, a hint detailing the BSD style
|
||||||
|
@ -54,12 +54,12 @@ Network Interface Card (NIC) during booting of the system. If set
|
|||||||
to anything but <quote>yes</quote> the NIC will be ignored by the
|
to anything but <quote>yes</quote> the NIC will be ignored by the
|
||||||
network script and not brought up.</para>
|
network script and not brought up.</para>
|
||||||
|
|
||||||
<para>The <envar>SERVICE</envar> variable defines the method of
|
<para>The <envar>SERVICE</envar> variable defines the method of obtaining the IP
|
||||||
obtaining the IP address. The LFS bootscripts have a modular IP
|
address. The LFS-Bootscripts package has a modular IP assignment format, and
|
||||||
assignment format, and creating additional files in the <filename
|
creating additional files in the <filename
|
||||||
class="directory">/etc/sysconfig/network-devices/services</filename>
|
class="directory">/etc/sysconfig/network-devices/services</filename> directory
|
||||||
directory allows other IP assignment methods. This is commonly used
|
allows other IP assignment methods. This is commonly used for Dynamic Host
|
||||||
for Dynamic Host Configuration Protocol (DHCP), which is addressed in the BLFS book.</para>
|
Configuration Protocol (DHCP), which is addressed in the BLFS book.</para>
|
||||||
|
|
||||||
<para>The <envar>GATEWAY</envar> variable should contain
|
<para>The <envar>GATEWAY</envar> variable should contain
|
||||||
the default gateway IP address, if one is present. If not, then comment out
|
the default gateway IP address, if one is present. If not, then comment out
|
||||||
|
@ -82,27 +82,24 @@ built-in drivers registered with <systemitem
|
|||||||
class="filesystem">sysfs</systemitem> are available to userspace
|
class="filesystem">sysfs</systemitem> are available to userspace
|
||||||
processes and to <command>udev</command> for device node creation.</para>
|
processes and to <command>udev</command> for device node creation.</para>
|
||||||
|
|
||||||
<para>The <command>S10udev</command> initscript takes care of creating
|
<para>The <command>S10udev</command> initscript takes care of creating these
|
||||||
these device nodes when Linux is booted. This script starts with
|
device nodes when Linux is booted. This script starts with registering
|
||||||
registering <command>/sbin/udevsend</command> as a hotplug event handler.
|
<command>/sbin/udevsend</command> as a hotplug event handler. Hotplug events
|
||||||
Hotplug events (discussed below) should not be generated during this
|
(discussed below) should not be generated during this stage, but
|
||||||
stage, but <command>udev</command> is registered just in case they do
|
<command>udev</command> is registered just in case they do occur. The
|
||||||
occur. The <command>udevstart</command> program then walks through
|
<command>udevstart</command> program then walks through the <systemitem
|
||||||
the <systemitem class="filesystem">/sys</systemitem> filesystem and
|
class="filesystem">/sys</systemitem> filesystem and creates devices under
|
||||||
creates devices under <filename class="directory">/dev</filename> that
|
<filename class="directory">/dev</filename> that match the descriptions. For
|
||||||
match the descriptions. For example,
|
example, <filename>/sys/class/tty/vcs/dev</filename> contains the string
|
||||||
<filename>/sys/class/tty/vcs/dev</filename> contains the string
|
<quote>7:0</quote> This string is used by <command>udevstart</command> to create
|
||||||
<quote>7:0</quote> This string is used by <command>udevstart</command>
|
<filename>/dev/vcs</filename> with major number <emphasis>7</emphasis> and minor
|
||||||
to create <filename>/dev/vcs</filename> with major number
|
<emphasis>0</emphasis>. The names and permissions of the nodes created under
|
||||||
<emphasis>7</emphasis> and minor <emphasis>0</emphasis>. The names and
|
the <filename class="directory">/dev</filename> directory are configured
|
||||||
permissions of the nodes created under the
|
according to the rules specified in the files within the <filename
|
||||||
<filename class="directory">/dev</filename> directory are configured according
|
class="directory">/etc/udev/rules.d/</filename> directory. These are numbered in
|
||||||
to the rules specified in the files within the
|
a similar fashion to the LFS-Bootscripts package. If <command>udev</command>
|
||||||
<filename class="directory">/etc/udev/rules.d/</filename> directory. These are
|
can't find a rule for the device it is creating, it will default permissions to
|
||||||
numbered in a similar fashion to the LFS bootscripts. If
|
<emphasis>660</emphasis> and ownership to <emphasis>root:root</emphasis>.</para>
|
||||||
<command>udev</command> can't find a rule for the device it is creating, it will
|
|
||||||
default permissions to <emphasis>660</emphasis> and ownership to
|
|
||||||
<emphasis>root:root</emphasis>.</para>
|
|
||||||
|
|
||||||
<para>Once the above stage is complete, all devices that were already
|
<para>Once the above stage is complete, all devices that were already
|
||||||
present and have compiled-in drivers will be available for use. What
|
present and have compiled-in drivers will be available for use. What
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
<!ENTITY version "SVN-20050630">
|
<!ENTITY version "SVN-20050601">
|
||||||
<!ENTITY releasedate "June 30, 2005">
|
<!ENTITY releasedate "July 01, 2005">
|
||||||
<!ENTITY milestone "6.2">
|
<!ENTITY milestone "6.2">
|
||||||
<!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user