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

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

r653@server (orig r651): manuel | 2005-11-08 11:36:13 -0800
Preparations to remove SBUs and DUs. Chapter boot.

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[3f8be484]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
[93adf44a]20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../../bootscripts/common/bootscripts.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]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}
34sed '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
37cp ${LFS}/etc/rc.d/init.d/mountfs{,.bak}
38sed '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 &gt; ${LFS}/etc/sysconfig/clock &lt;&lt; "EOF"
58<literal># Begin /etc/sysconfig/clock
59
60UTC=1
61
62# End /etc/sysconfig/clock</literal>
63EOF</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>
Note: See TracBrowser for help on using the repository browser.