source: boot/common/bootscripts.xml@ e41abfe

Last change on this file since e41abfe was 2659c74, checked in by Jim Gifford <clfs@…>, 19 years ago

r677@server (orig r675): manuel | 2005-11-10 03:13:57 -0800
Including patches.ent from general.ent

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[bf8c11f]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-scripts-boot" role="wrap">
9 <?dbhtml filename="bootscripts.html"?>
10
11 <title>LFS-Bootscripts-&lfs-bootscripts-version;</title>
12
13 <indexterm zone="ch-scripts-boot">
14 <primary sortas="a-Bootscripts">Bootscripts</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
[c4b671e]18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../bootscripts/common/bootscripts.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[bf8c11f]21
22 <sect2 role="installation">
23 <title>Installation of LFS-Bootscripts</title>
24
25 <para>Install the package:</para>
26
27<screen><userinput>make ETCDIR=${LFS}/etc minimal</userinput></screen>
28
29 <para>Make bootscripts usable at boot:</para>
30
31<screen><userinput>cp ${LFS}/etc/rc.d/init.d/functions{,.bak}
32sed 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/tools/sbin:/bin:/sbin|g' \
33 ${LFS}/etc/rc.d/init.d/functions.bak \
34 > ${LFS}/etc/rc.d/init.d/functions
35cp ${LFS}/etc/rc.d/init.d/mountfs{,.bak}
36sed 's@mount -f /sys || failed=1@mount -f /sys | udevstart || failed=1@' \
37 ${LFS}/etc/rc.d/init.d/mountfs.bak \
38 > ${LFS}/etc/rc.d/init.d/mountfs</userinput></screen>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../../bootscripts/common/setclock.xml"
42 xpointer="xpointer(//*[@os='a'])"/>
43
44 <para>If you do not know whether or not the hardware clock is set to UTC,
45 you can find out after you have booted the new machine by running the
46 <userinput>hwclock --localtime --show</userinput> command, and if
47 necessary editing the <filename>/etc/sysconfig/clock</filename> script.
48 The worst that will happen if you make a wrong guess here is that the
49 time displayed will be wrong.</para>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="../../bootscripts/common/setclock.xml"
53 xpointer="xpointer(//*[@os='c'])"/>
54
55<screen><userinput>cat &gt; ${LFS}/etc/sysconfig/clock &lt;&lt; "EOF"
56<literal># Begin /etc/sysconfig/clock
57
58UTC=1
59
60# End /etc/sysconfig/clock</literal>
61EOF</userinput></screen>
62
63 </sect2>
64
65 <sect2 role="content">
66 <title/>
67
68 <para>Details on this package are located in <xref
69 linkend="contents-bootscripts" role="."/></para>
70
71 </sect2>
72
73</sect1>
Note: See TracBrowser for help on using the repository browser.