source: BOOK/boot/common/bootscripts.xml@ 5a951e7

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 5a951e7 was a70c78d, checked in by William Harrington <kb0iic@…>, 11 years ago

Should install the minimal bootscripts during the boot method.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-bootscripts" role="wrap">
9 <?dbhtml filename="bootscripts.html"?>
10
11 <title>Bootscripts for CLFS &bootscripts-clfs-version;</title>
12
13 <indexterm zone="ch-boot-bootscripts">
14 <primary sortas="a-Bootscripts">Bootscripts</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bootscripts package contains a set of scripts to
21 start/stop the CLFS system at bootup/shutdown.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Bootscripts</title>
27
28 <para os="p1">Apply a patch which modifies the scripts for use in
29 <filename class="directory">/tools</filename>:</para>
30
31<screen os="p2"><userinput>patch -Np1 -i ../&bootscripts-clfs-tools_updates-patch;</userinput></screen>
32
33 <para os="a">Install the package:</para>
34
35<screen os="b"><userinput>make DESTDIR=/tools install-minimal</userinput></screen>
36
37 <para os="c">The <command>setclock</command> script reads the time from the
38 hardware clock, also known as the BIOS or the Complementary Metal Oxide
39 Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this
40 script will convert the hardware clock's time to the local time using
41 the <filename>/tools/etc/sysconfig/clock</filename> file (which tells the
42 <command>hwclock</command> program which timezone the user is in). There
43 is no way to detect whether or not the hardware clock is set to UTC, so
44 this needs to be configured manually.</para>
45
46
47
48 <para os="d">If you do not know whether or not the hardware clock is set to UTC,
49 you can find out after you have booted the new machine by running the
50 <userinput>hwclock --localtime --show</userinput> command, and if
51 necessary editing the <filename>/tools/etc/sysconfig/clock</filename> file.
52 The worst that will happen if you make a wrong guess here is that the
53 time displayed will be wrong.</para>
54
55 <para os="e">Change the value of the <envar>UTC</envar> variable below
56 to a value of <option>0</option> (zero) if the hardware clock
57 is <emphasis>not</emphasis> set to UTC time.</para>
58
59<screen os="f"><userinput>cat &gt; /tools/etc/sysconfig/clock &lt;&lt; "EOF"
60<literal># Begin /tools/etc/sysconfig/clock
61
62UTC=1
63
64# End /tools/etc/sysconfig/clock</literal>
65EOF</userinput></screen>
66
67 </sect2>
68
69 <sect2 role="content">
70 <title/>
71
72 <para>Details on this package are located in <xref
73 linkend="contents-bootscripts" role="."/></para>
74
75 </sect2>
76
77</sect1>
Note: See TracBrowser for help on using the repository browser.