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 | <sect2 role="package">
|
---|
21 | <title/>
|
---|
22 |
|
---|
23 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
24 | href="../../bootscripts/common/bootscripts.xml"
|
---|
25 | xpointer="xpointer(//*[@role='package']/para[1])"/>
|
---|
26 |
|
---|
27 | <segmentedlist>
|
---|
28 | <segtitle>&buildtime;</segtitle>
|
---|
29 | <segtitle>&diskspace;</segtitle>
|
---|
30 |
|
---|
31 | <seglistitem>
|
---|
32 | <seg>Not checked yet</seg>
|
---|
33 | <seg>Not checked yet</seg>
|
---|
34 | </seglistitem>
|
---|
35 | </segmentedlist>
|
---|
36 |
|
---|
37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
38 | href="../../bootscripts/common/bootscripts.xml"
|
---|
39 | xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
|
---|
40 |
|
---|
41 | </sect2>
|
---|
42 |
|
---|
43 | <sect2 role="installation">
|
---|
44 | <title>Installation of LFS-Bootscripts</title>
|
---|
45 |
|
---|
46 | <para>Install the package:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>make ETCDIR=${LFS}/etc minimal</userinput></screen>
|
---|
49 |
|
---|
50 | <para>Make bootscripts usable at boot:</para>
|
---|
51 |
|
---|
52 | <screen><userinput>cp ${LFS}/etc/rc.d/init.d/functions{,.bak}
|
---|
53 | sed 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/tools/sbin:/bin:/sbin|g' \
|
---|
54 | ${LFS}/etc/rc.d/init.d/functions.bak \
|
---|
55 | > ${LFS}/etc/rc.d/init.d/functions
|
---|
56 | cp ${LFS}/etc/rc.d/init.d/mountfs{,.bak}
|
---|
57 | sed 's@mount -f /sys || failed=1@mount -f /sys | udevstart || failed=1@' \
|
---|
58 | ${LFS}/etc/rc.d/init.d/mountfs.bak \
|
---|
59 | > ${LFS}/etc/rc.d/init.d/mountfs</userinput></screen>
|
---|
60 |
|
---|
61 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
62 | href="../../bootscripts/common/setclock.xml"
|
---|
63 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
64 |
|
---|
65 | <para>If you do not know whether or not the hardware clock is set to UTC,
|
---|
66 | you can find out after you have booted the new machine by running the
|
---|
67 | <userinput>hwclock --localtime --show</userinput> command, and if
|
---|
68 | necessary editing the <filename>/etc/sysconfig/clock</filename> script.
|
---|
69 | The worst that will happen if you make a wrong guess here is that the
|
---|
70 | time displayed will be wrong.</para>
|
---|
71 |
|
---|
72 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
73 | href="../../bootscripts/common/setclock.xml"
|
---|
74 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
75 |
|
---|
76 | <screen><userinput>cat > ${LFS}/etc/sysconfig/clock << "EOF"
|
---|
77 | <literal># Begin /etc/sysconfig/clock
|
---|
78 |
|
---|
79 | UTC=1
|
---|
80 |
|
---|
81 | # End /etc/sysconfig/clock</literal>
|
---|
82 | EOF</userinput></screen>
|
---|
83 |
|
---|
84 | </sect2>
|
---|
85 |
|
---|
86 | <sect2 role="content">
|
---|
87 | <title/>
|
---|
88 |
|
---|
89 | <para>Details on this package are located in <xref
|
---|
90 | linkend="contents-bootscripts" role="."/></para>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | </sect1>
|
---|