source: BOOK/boot/common/bootscripts.xml@ 0d0fc28

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0d0fc28 was eb55250, checked in by Jim Gifford <clfs@…>, 19 years ago

r1166@server (orig r1164): chris | 2006-02-10 22:07:07 -0800
Added -v to the rest of the temp-system pages, and various other text updates

  • Property mode set to 100644
File size: 2.4 KB
Line 
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
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../bootscripts/common/bootscripts.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
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 -v ${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 -v ${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.