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