source: BOOK/boot/common/bootscripts.xml@ b27081c4

sysvinit
Last change on this file since b27081c4 was 3bffddc0, checked in by Chris Staub <chris@…>, 11 years ago

Updated index references in boot section

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[1a0bd38]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>
[3bffddc0]15 <secondary>boot</secondary>
[1a0bd38]16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <para>The Bootscripts package contains a set of scripts to
22 start/stop the CLFS system at bootup/shutdown.</para>
23
24 </sect2>
25
26 <sect2 role="installation">
27 <title>Installation of Bootscripts</title>
28
[f2473a9]29 <para os="p1">Apply a patch which modifies the scripts for use in
30 <filename class="directory">/tools</filename>:</para>
31
32<screen os="p2"><userinput>patch -Np1 -i ../&bootscripts-clfs-tools_updates-patch;</userinput></screen>
33
[1a0bd38]34 <para os="a">Install the package:</para>
35
[a70c78d]36<screen os="b"><userinput>make DESTDIR=/tools install-minimal</userinput></screen>
[1a0bd38]37
38 <para os="c">The <command>setclock</command> script reads the time from the
39 hardware clock, also known as the BIOS or the Complementary Metal Oxide
40 Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this
41 script will convert the hardware clock's time to the local time using
42 the <filename>/tools/etc/sysconfig/clock</filename> file (which tells the
43 <command>hwclock</command> program which timezone the user is in). There
44 is no way to detect whether or not the hardware clock is set to UTC, so
45 this needs to be configured manually.</para>
46
47
48
49 <para os="d">If you do not know whether or not the hardware clock is set to UTC,
50 you can find out after you have booted the new machine by running the
51 <userinput>hwclock --localtime --show</userinput> command, and if
52 necessary editing the <filename>/tools/etc/sysconfig/clock</filename> file.
53 The worst that will happen if you make a wrong guess here is that the
54 time displayed will be wrong.</para>
55
56 <para os="e">Change the value of the <envar>UTC</envar> variable below
57 to a value of <option>0</option> (zero) if the hardware clock
58 is <emphasis>not</emphasis> set to UTC time.</para>
59
60<screen os="f"><userinput>cat &gt; /tools/etc/sysconfig/clock &lt;&lt; "EOF"
61<literal># Begin /tools/etc/sysconfig/clock
62
63UTC=1
64
65# End /tools/etc/sysconfig/clock</literal>
66EOF</userinput></screen>
67
68 </sect2>
69
70 <sect2 role="content">
71 <title/>
72
73 <para>Details on this package are located in <xref
74 linkend="contents-bootscripts" role="."/></para>
75
76 </sect2>
77
78</sect1>
Note: See TracBrowser for help on using the repository browser.