mirror of
https://github.com/avmaisak/LFS_Book.git
synced 2026-01-14 02:00:45 +00:00
Revision: 11574 Author: pierre Date: 10 апреля 2019 г. 23:20:22 Message: Change <productname> tags so that they reflect the dbhtml processing instruction ---- Modified : /trunk/BOOK/chapter05/binutils-pass1.xml Modified : /trunk/BOOK/chapter05/binutils-pass2.xml Modified : /trunk/BOOK/chapter05/gcc-pass1.xml Modified : /trunk/BOOK/chapter05/gcc-pass2.xml Modified : /trunk/BOOK/chapter05/libstdc++.xml Modified : /trunk/BOOK/chapter05/linux-headers.xml Modified : /trunk/BOOK/chapter06/linux-headers.xml Modified : /trunk/BOOK/chapter06/pkgconfig.xml Modified : /trunk/BOOK/chapter07/bootscripts.xml Modified : /trunk/BOOK/chapter08/kernel.xml
314 lines
14 KiB
XML
314 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||
<!ENTITY % general-entities SYSTEM "../general.ent">
|
||
%general-entities;
|
||
]>
|
||
|
||
<sect1 id="ch-scripts-bootscripts" role="wrap" revision="sysv">
|
||
<?dbhtml filename="bootscripts.html"?>
|
||
|
||
<sect1info condition="script">
|
||
<productname>bootscripts</productname>
|
||
<productnumber>&lfs-bootscripts-version;</productnumber>
|
||
<address>&lfs-bootscripts-url;</address>
|
||
</sect1info>
|
||
|
||
<title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
|
||
|
||
<indexterm zone="ch-scripts-bootscripts">
|
||
<primary sortas="a-Bootscripts">Загрузочные файлы сценариев</primary>
|
||
</indexterm>
|
||
|
||
<sect2 role="package">
|
||
<title/>
|
||
|
||
<para>Пакет LFS-Bootscripts содержит набор сценариев для запуска/остановки LFS системы. Файлы конфигурации и процедуры необходимы, чтобы настроить процесс загрузки, писанные в следующих разделах.</para>
|
||
|
||
<segmentedlist>
|
||
<segtitle>&buildtime;</segtitle>
|
||
<segtitle>&diskspace;</segtitle>
|
||
|
||
<seglistitem>
|
||
<seg>&lfs-bootscripts-ch7-sbu;</seg>
|
||
<seg>&lfs-bootscripts-ch7-du;</seg>
|
||
</seglistitem>
|
||
</segmentedlist>
|
||
|
||
</sect2>
|
||
|
||
<sect2 role="installation">
|
||
<title>Установка пакета LFS-Bootscripts</title>
|
||
|
||
<para>Установите пакет:</para>
|
||
|
||
<screen><userinput remap="install">make install</userinput></screen>
|
||
|
||
</sect2>
|
||
|
||
<sect2 id="contents-bootscripts" role="content">
|
||
<title>Содержимое пакета LFS-Bootscripts</title>
|
||
<segmentedlist>
|
||
<segtitle>Установленные сценарии</segtitle>
|
||
<segtitle>Установленные каталоги</segtitle>
|
||
|
||
<seglistitem>
|
||
<seg>checkfs, cleanfs, console, functions, halt, ifdown,
|
||
ifup, localnet, modules, mountfs, mountvirtfs, network, rc, reboot,
|
||
sendsignals, setclock, ipv4-static, swap, sysctl, sysklogd, template,
|
||
udev, and udev_retry</seg>
|
||
<seg>/etc/rc.d, /etc/init.d (symbolic link), /etc/sysconfig,
|
||
/lib/services, /lib/lsb (symbolic link)</seg>
|
||
</seglistitem>
|
||
</segmentedlist>
|
||
|
||
<variablelist>
|
||
<bridgehead renderas="sect3">Краткое описание</bridgehead>
|
||
<?dbfo list-presentation="list"?>
|
||
<?dbhtml list-presentation="table"?>
|
||
|
||
<varlistentry id="checkfs-bootscripts">
|
||
<term><command>checkfs</command></term>
|
||
<listitem>
|
||
<para>Проверяет целостность файловых систем, после того, как они были примонтированы (за исключением журналов и сетевых файловых систем)</para>
|
||
<indexterm zone="ch-scripts-bootscripts checkfs-bootscripts">
|
||
<primary sortas="d-checkfs">checkfs</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="cleanfs-bootscripts">
|
||
<term><command>cleanfs</command></term>
|
||
<listitem>
|
||
<para>Удаляет файлы, которые не должны быть сохранены между циклами включения/выключения системы, такие как в каталоге <filename class="directory">/var/run/</filename> и
|
||
<filename class="directory">/var/lock/</filename>; также создается заново
|
||
<filename>/var/run/utmp</filename> и удаляют, возможные наличия файлов
|
||
<filename>/etc/nologin</filename>, <filename>/fastboot</filename>, и
|
||
<filename>/forcefsck</filename></para>
|
||
<indexterm zone="ch-scripts-bootscripts cleanfs-bootscripts">
|
||
<primary sortas="d-cleanfs">cleanfs</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="console-bootscripts">
|
||
<term><command>console</command></term>
|
||
<listitem>
|
||
<para>Загружает правильные таблицы раскладки клавиатуры для клавиатуры, и устанавливает шрифт экрана</para>
|
||
<indexterm zone="ch-scripts-bootscripts console-bootscripts">
|
||
<primary sortas="d-console">console</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="functions-bootscripts">
|
||
<term><command>functions</command></term>
|
||
<listitem>
|
||
<para>Содержит общие функции, такие как error и проверка статуса. Эти функции используются другими сценариями пакета</para>
|
||
<indexterm zone="ch-scripts-bootscripts functions-bootscripts">
|
||
<primary sortas="d-functions">functions</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="halt-bootscripts">
|
||
<term><command>halt</command></term>
|
||
<listitem>
|
||
<para>Останавливает систему</para>
|
||
<indexterm zone="ch-scripts-bootscripts halt-bootscripts">
|
||
<primary sortas="d-halt">halt</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="ifdown-bootscripts">
|
||
<term><command>ifdown</command></term>
|
||
<listitem>
|
||
<para>Остановка работы сетевых устройств</para>
|
||
<indexterm zone="ch-scripts-bootscripts ifdown-bootscripts">
|
||
<primary sortas="d-ifdown">ifdown</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="ifup-bootscripts">
|
||
<term><command>ifup</command></term>
|
||
<listitem>
|
||
<para>Инициализирует сетевые устройства</para>
|
||
<indexterm zone="ch-scripts-bootscripts ifup-bootscripts">
|
||
<primary sortas="d-ifup">ifup</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="localnet-bootscripts">
|
||
<term><command>localnet</command></term>
|
||
<listitem>
|
||
<para>Выполняет настройку имени хоста и локального loopback устройства</para>
|
||
<indexterm zone="ch-scripts-bootscripts localnet-bootscripts">
|
||
<primary sortas="d-localnet">localnet</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="modules-bootscripts">
|
||
<term><command>modules</command></term>
|
||
<listitem>
|
||
<para>Загружает модули ядра из списка, который находится в файле
|
||
<filename>/etc/sysconfig/modules</filename>, используя переданные здесь аргументы</para>
|
||
<indexterm zone="ch-scripts-bootscripts modules-bootscripts">
|
||
<primary sortas="d-modules">modules</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="mountfs-bootscripts">
|
||
<term><command>mountfs</command></term>
|
||
<listitem>
|
||
<para>Монтирует все файловые системы, кроме тех, которые отмечены как
|
||
<emphasis>noauto</emphasis> или сетевые файловые системы</para>
|
||
<indexterm zone="ch-scripts-bootscripts mountfs-bootscripts">
|
||
<primary sortas="d-mountfs">mountfs</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="mountvirtfs-bootscripts">
|
||
<term><command>mountvirtfs</command></term>
|
||
<listitem>
|
||
<para>Монтирует виртуальные файловые системы, такие как <systemitem
|
||
class="filesystem">proc</systemitem></para>
|
||
<indexterm zone="ch-scripts-bootscripts mountvirtfs-bootscripts">
|
||
<primary sortas="d-mountvirtfs">mountvirtfs</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="network-bootscripts">
|
||
<term><command>network</command></term>
|
||
<listitem>
|
||
<para>Выполняет настройку сетевых интерфейсов, таких как сетевые карты, и настаивает сетевой шлюз по-умолчанию (где это применимо)</para>
|
||
<indexterm zone="ch-scripts-bootscripts network-bootscripts">
|
||
<primary sortas="d-network">network</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="rc-bootscripts">
|
||
<term><command>rc</command></term>
|
||
<listitem>
|
||
<para>Основной управляющий сценарий. Он отвечает за запуск других сценариев загрузки один за одним, в той последовательности, которая определенной по имени обрабатываемых символических ссылок.</para>
|
||
<indexterm zone="ch-scripts-bootscripts rc-bootscripts">
|
||
<primary sortas="d-rc">rc</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="reboot-bootscripts">
|
||
<term><command>reboot</command></term>
|
||
<listitem>
|
||
<para>Перезагружает систему</para>
|
||
<indexterm zone="ch-scripts-bootscripts reboot-bootscripts">
|
||
<primary sortas="d-reboot">reboot</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="sendsignals-bootscripts">
|
||
<term><command>sendsignals</command></term>
|
||
<listitem>
|
||
<para>Гарантирует то, что каждый процесс будет завершен до того, как система будет остановлена или перезагружена</para>
|
||
<indexterm zone="ch-scripts-bootscripts sendsignals-bootscripts">
|
||
<primary sortas="d-sendsignals">sendsignals</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="setclock-bootscripts">
|
||
<term><command>setclock</command></term>
|
||
<listitem>
|
||
<para>Сбрасывает настроенные часы ядра в локальное время в случае, если аппаратное время не настроено в UTC</para>
|
||
<indexterm zone="ch-scripts-bootscripts setclock-bootscripts">
|
||
<primary sortas="d-setclock">setclock</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="ipv4-static-bootscripts">
|
||
<term><command>ipv4-static</command></term>
|
||
<listitem>
|
||
<para>Предоставляет функциональность, позволяющую назначать статический IP адрес сетевому интерфейсу</para>
|
||
<indexterm zone="ch-scripts-bootscripts ipv4-static-bootscripts">
|
||
<primary sortas="d-ipv4-static">ipv4-static</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="swap-bootscripts">
|
||
<term><command>swap</command></term>
|
||
<listitem>
|
||
<para>Включает или выключает файл подкачки и связанные с ним разделы файловой системы</para>
|
||
<indexterm zone="ch-scripts-bootscripts swap-bootscripts">
|
||
<primary sortas="d-swap">swap</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="sysctl-bootscripts">
|
||
<term><command>sysctl</command></term>
|
||
<listitem>
|
||
<para>Загружает параметры системной конфигурации в запущенное ядро из файла <filename>/etc/sysctl.conf</filename>, в том случае, если файл существует</para>
|
||
<indexterm zone="ch-scripts-bootscripts sysctl-bootscripts">
|
||
<primary sortas="d-sysctl">sysctl</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="sysklogd-bootscripts">
|
||
<term><command>sysklogd</command></term>
|
||
<listitem>
|
||
<para>Запускает или останавливает системные службы журналирования и службы ядра</para>
|
||
<indexterm zone="ch-scripts-bootscripts sysklogd-bootscripts">
|
||
<primary sortas="d-sysklogd">sysklogd</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="template-bootscripts">
|
||
<term><command>template</command></term>
|
||
<listitem>
|
||
<para>Шаблон, для создания собственных сценариев загрузки для других служб</para>
|
||
<indexterm zone="ch-scripts-bootscripts template-bootscripts">
|
||
<primary sortas="d-template">template</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="udev-bootscripts">
|
||
<term><command>udev</command></term>
|
||
<listitem>
|
||
<para>Подготовка каталога <filename class="directory">/dev</filename>
|
||
и запуск Udev</para>
|
||
<indexterm zone="ch-scripts-bootscripts udev-bootscripts">
|
||
<primary sortas="d-udev">udev</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry id="udev-retry-bootscripts">
|
||
<term><command>udev_retry</command></term>
|
||
<listitem>
|
||
<para>Повторная попытка запуска неудавшихся событий udev, копирование сгенерированных правил из каталога <filename class="directory">/run/udev</filename> в каталог
|
||
<filename class="directory">/etc/udev/rules.d</filename> при необходимости</para>
|
||
<indexterm zone="ch-scripts-bootscripts udev-retry-bootscripts">
|
||
<primary sortas="d-udev-retry">udev_retry</primary>
|
||
</indexterm>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
</variablelist>
|
||
|
||
</sect2>
|
||
|
||
</sect1>
|