mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
added <?dbhtml> tag for output redirection into subdir
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1268 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
5f1b1aba37
commit
e12115e329
@ -1,5 +1,6 @@
|
|||||||
<chapter id="chapter07">
|
<chapter id="chapter07">
|
||||||
<title>Creating system boot scripts</title>
|
<title>Creating system boot scripts</title>
|
||||||
|
<?dbhtml filename="chapter07.html" dir="chapter07"?>
|
||||||
|
|
||||||
&c7-introduction;
|
&c7-introduction;
|
||||||
&c7-usage;
|
&c7-usage;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-checkfs">
|
<sect1 id="ch07-checkfs">
|
||||||
<title>Creating the checkfs script</title>
|
<title>Creating the checkfs script</title>
|
||||||
|
<?dbhtml filename="checkfs.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/checkfs</filename> script by running
|
<para>Create the <filename>/etc/init.d/checkfs</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-createdirs">
|
<sect1 id="ch07-createdirs">
|
||||||
<title>Creating directories</title>
|
<title>Creating directories</title>
|
||||||
|
<?dbhtml filename="createdirs.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>We need to start by creating a few extra directories that are used by
|
<para>We need to start by creating a few extra directories that are used by
|
||||||
the boot scripts. These directories are created by running:</para>
|
the boot scripts. These directories are created by running:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-ethnet">
|
<sect1 id="ch07-ethnet">
|
||||||
<title>Creating the ethnet script</title>
|
<title>Creating the ethnet script</title>
|
||||||
|
<?dbhtml filename="ethnet.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>This section only applies if a user is going to configure a network card.
|
<para>This section only applies if a user is going to configure a network card.
|
||||||
If not, this section can be skipped.</para>
|
If not, this section can be skipped.</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-functions">
|
<sect1 id="ch07-functions">
|
||||||
<title>Creating the functions script</title>
|
<title>Creating the functions script</title>
|
||||||
|
<?dbhtml filename="functions.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/functions</filename> script by running
|
<para>Create the <filename>/etc/init.d/functions</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-halt">
|
<sect1 id="ch07-halt">
|
||||||
<title>Creating the halt script</title>
|
<title>Creating the halt script</title>
|
||||||
|
<?dbhtml filename="halt.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/halt</filename> script by running the
|
<para>Create the <filename>/etc/init.d/halt</filename> script by running the
|
||||||
following command:</para>
|
following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-hosts">
|
<sect1 id="ch07-hosts">
|
||||||
<title>Creating the /etc/hosts file</title>
|
<title>Creating the /etc/hosts file</title>
|
||||||
|
<?dbhtml filename="hosts.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>If a network card is to be configured, you have to decide on the
|
<para>If a network card is to be configured, you have to decide on the
|
||||||
IP-address, FQDN and possible aliases for use in the /etc/hosts file. An
|
IP-address, FQDN and possible aliases for use in the /etc/hosts file. An
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-introduction">
|
<sect1 id="ch07-introduction">
|
||||||
<title>Introduction</title>
|
<title>Introduction</title>
|
||||||
|
<?dbhtml filename="introduction.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>This chapter will create the necessary scripts that are run at boot time.
|
<para>This chapter will create the necessary scripts that are run at boot time.
|
||||||
These scripts perform tasks such as remounting the root file system
|
These scripts perform tasks such as remounting the root file system
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-loadkeys">
|
<sect1 id="ch07-loadkeys">
|
||||||
<title>Creating the loadkeys script</title>
|
<title>Creating the loadkeys script</title>
|
||||||
|
<?dbhtml filename="loadkeys.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>You only need to create this script if you don't have a
|
<para>You only need to create this script if you don't have a
|
||||||
default 101 keys US keyboard layout.</para>
|
default 101 keys US keyboard layout.</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-localnet">
|
<sect1 id="ch07-localnet">
|
||||||
<title>Creating the localnet script</title>
|
<title>Creating the localnet script</title>
|
||||||
|
<?dbhtml filename="localnet.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/localnet</filename> script by running
|
<para>Create the <filename>/etc/init.d/localnet</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-mountfs">
|
<sect1 id="ch07-mountfs">
|
||||||
<title>Creating the mountfs script</title>
|
<title>Creating the mountfs script</title>
|
||||||
|
<?dbhtml filename="mountfs.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/mountfs</filename> script by running
|
<para>Create the <filename>/etc/init.d/mountfs</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-network">
|
<sect1 id="ch07-network">
|
||||||
<title>Creating the /etc/sysconfig/network file</title>
|
<title>Creating the /etc/sysconfig/network file</title>
|
||||||
|
<?dbhtml filename="network.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>A new file <filename>/etc/sysconfig/network</filename> is created and the
|
<para>A new file <filename>/etc/sysconfig/network</filename> is created and the
|
||||||
hostname is put in it by running:</para>
|
hostname is put in it by running:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-rc">
|
<sect1 id="ch07-rc">
|
||||||
<title>Creating the rc script</title>
|
<title>Creating the rc script</title>
|
||||||
|
<?dbhtml filename="rc.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>The first main boot script is the <filename>/etc/init.d/rc</filename>
|
<para>The first main boot script is the <filename>/etc/init.d/rc</filename>
|
||||||
script. Create the <filename>/etc/init.d/rc</filename> script by running the
|
script. Create the <filename>/etc/init.d/rc</filename> script by running the
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-rcS">
|
<sect1 id="ch07-rcS">
|
||||||
<title>Creating the rcS script</title>
|
<title>Creating the rcS script</title>
|
||||||
|
<?dbhtml filename="rcs.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>The second main boot script is the <filename>rcS</filename> script.
|
<para>The second main boot script is the <filename>rcS</filename> script.
|
||||||
Create the <filename>/etc/init.d/rcS</filename> script by running the following
|
Create the <filename>/etc/init.d/rcS</filename> script by running the following
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-reboot">
|
<sect1 id="ch07-reboot">
|
||||||
<title>Creating the reboot script</title>
|
<title>Creating the reboot script</title>
|
||||||
|
<?dbhtml filename="reboot.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/reboot</filename> script by running the
|
<para>Create the <filename>/etc/init.d/reboot</filename> script by running the
|
||||||
following command:</para>
|
following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-sendsignals">
|
<sect1 id="ch07-sendsignals">
|
||||||
<title>Creating the sendsignals script</title>
|
<title>Creating the sendsignals script</title>
|
||||||
|
<?dbhtml filename="sendsignals.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/sendsignals</filename> script by running
|
<para>Create the <filename>/etc/init.d/sendsignals</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<sect1 id="ch07-setclock">
|
<sect1 id="ch07-setclock">
|
||||||
<title>Creating the setclock script</title>
|
<title>Creating the setclock script</title>
|
||||||
|
<?dbhtml filename="setclock.html" dir="chapter07"?>
|
||||||
|
|
||||||
|
|
||||||
<para>The following script is only for real use when the hardware clock (also
|
<para>The following script is only for real use when the hardware clock (also
|
||||||
known as BIOS or CMOS clock) isn't set to GMT time. The recommended
|
known as BIOS or CMOS clock) isn't set to GMT time. The recommended
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-symperm">
|
<sect1 id="ch07-symperm">
|
||||||
<title>Setting up symlinks and permissions</title>
|
<title>Setting up symlinks and permissions</title>
|
||||||
|
<?dbhtml filename="symperm.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>These files get the proper permissions and the necessary symlinks
|
<para>These files get the proper permissions and the necessary symlinks
|
||||||
are created by running the following commands. If you didn't create the loadkeys
|
are created by running the following commands. If you didn't create the loadkeys
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-sysklogd">
|
<sect1 id="ch07-sysklogd">
|
||||||
<title>Creating the sysklogd script</title>
|
<title>Creating the sysklogd script</title>
|
||||||
|
<?dbhtml filename="sysklogd.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/sysklogd</filename> script by running
|
<para>Create the <filename>/etc/init.d/sysklogd</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-template">
|
<sect1 id="ch07-template">
|
||||||
<title>Creating the template script</title>
|
<title>Creating the template script</title>
|
||||||
|
<?dbhtml filename="template.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Create the <filename>/etc/init.d/template</filename> script by running
|
<para>Create the <filename>/etc/init.d/template</filename> script by running
|
||||||
the following command:</para>
|
the following command:</para>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch07-usage">
|
<sect1 id="ch07-usage">
|
||||||
<title>How does the booting process with these scripts work?</title>
|
<title>How does the booting process with these scripts work?</title>
|
||||||
|
<?dbhtml filename="usage.html" dir="chapter07"?>
|
||||||
|
|
||||||
<para>Linux uses a special booting facility named SysVinit. It's based on a
|
<para>Linux uses a special booting facility named SysVinit. It's based on a
|
||||||
concept of <emphasis>runlevels</emphasis>. It can be widely different
|
concept of <emphasis>runlevels</emphasis>. It can be widely different
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<chapter id="chapter08">
|
<chapter id="chapter08">
|
||||||
<title>Making the LFS system bootable</title>
|
<title>Making the LFS system bootable</title>
|
||||||
|
<?dbhtml filename="chapter08.html" dir="chapter08"?>
|
||||||
|
|
||||||
&c8-introduction;
|
&c8-introduction;
|
||||||
&c8-fstab;
|
&c8-fstab;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch08-fstab">
|
<sect1 id="ch08-fstab">
|
||||||
<title>Creating the /etc/fstab file</title>
|
<title>Creating the /etc/fstab file</title>
|
||||||
|
<?dbhtml filename="fstab.html" dir="chapter08"?>
|
||||||
|
|
||||||
<para>In order for certain programs to be able to determine where certain
|
<para>In order for certain programs to be able to determine where certain
|
||||||
partitions are supposed to be mounted by default, the /etc/fstab file is
|
partitions are supposed to be mounted by default, the /etc/fstab file is
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch08-introduction">
|
<sect1 id="ch08-introduction">
|
||||||
<title>Introduction</title>
|
<title>Introduction</title>
|
||||||
|
<?dbhtml filename="introduction.html" dir="chapter08"?>
|
||||||
|
|
||||||
<para>This chapter will make LFS bootable. This chapter deals with creating a
|
<para>This chapter will make LFS bootable. This chapter deals with creating a
|
||||||
new fstab file, building a
|
new fstab file, building a
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch08-kernel">
|
<sect1 id="ch08-kernel">
|
||||||
<title>Installing a kernel</title>
|
<title>Installing a kernel</title>
|
||||||
|
<?dbhtml filename="kernel.html" dir="chapter08"?>
|
||||||
|
|
||||||
<screen>Estimated build time: &kernel-time;
|
<screen>Estimated build time: &kernel-time;
|
||||||
Estimated required disk space: &kernel-compsize;</screen>
|
Estimated required disk space: &kernel-compsize;</screen>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch08-lilo">
|
<sect1 id="ch08-lilo">
|
||||||
<title>Making the LFS system bootable</title>
|
<title>Making the LFS system bootable</title>
|
||||||
|
<?dbhtml filename="lilo.html" dir="chapter08"?>
|
||||||
|
|
||||||
<para>In order to be able to boot the LFS system, we need to update our
|
<para>In order to be able to boot the LFS system, we need to update our
|
||||||
bootloader. We're assuming that your host system is using Lilo (since
|
bootloader. We're assuming that your host system is using Lilo (since
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<chapter id="chapter09">
|
<chapter id="chapter09">
|
||||||
<title>The End</title>
|
<title>The End</title>
|
||||||
|
<?dbhtml filename="chapter09.html" dir="chapter09"?>
|
||||||
|
|
||||||
&c9-theend;
|
&c9-theend;
|
||||||
&c9-reboot;
|
&c9-reboot;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch09-reboot">
|
<sect1 id="ch09-reboot">
|
||||||
<title>Rebooting the system</title>
|
<title>Rebooting the system</title>
|
||||||
|
<?dbhtml filename="reboot.html" dir="chapter09"?>
|
||||||
|
|
||||||
<para>Now that all software has been installed, bootscripts have been created,
|
<para>Now that all software has been installed, bootscripts have been created,
|
||||||
it's time to reboot the computer. Before we reboot let's unmount
|
it's time to reboot the computer. Before we reboot let's unmount
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<sect1 id="ch09-theend">
|
<sect1 id="ch09-theend">
|
||||||
<title>The End</title>
|
<title>The End</title>
|
||||||
|
<?dbhtml filename="theend.html" dir="chapter09"?>
|
||||||
|
|
||||||
<para>Well done! You have finished installing your LFS system. It may have
|
<para>Well done! You have finished installing your LFS system. It may have
|
||||||
been a long process but it was well worth it. We wish you a lot of fun
|
been a long process but it was well worth it. We wish you a lot of fun
|
||||||
|
Loading…
Reference in New Issue
Block a user