Author: ken
Date: 2005-10-24 06:08:18 -0600 (Mon, 24 Oct 2005)
New Revision: 7078
Modified:
branches/cross-lfs/BOOK/boot/common/bootscripts.xml
branches/cross-lfs/BOOK/boot/common/pwdgroup.xml
branches/cross-lfs/BOOK/bootscripts/common/setclock.xml
branches/cross-lfs/BOOK/general.ent
branches/cross-lfs/BOOK/introduction/common/changelog.xml
Log:
Chapter 7 corrections to passwd, group, clock and correct date of previous
entry in master changelog
Modified: branches/cross-lfs/BOOK/boot/common/bootscripts.xml
===================================================================
--- branches/cross-lfs/BOOK/boot/common/bootscripts.xml 2005-10-23 21:25:50 UTC
(rev 7077)
+++ branches/cross-lfs/BOOK/boot/common/bootscripts.xml 2005-10-24 12:08:18 UTC
(rev 7078)
@@ -58,6 +58,29 @@
${LFS}/etc/rc.d/init.d/mountfs.bak \
> ${LFS}/etc/rc.d/init.d/mountfs</userinput></screen>
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../bootscripts/common/setclock.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'a'])"/>
+
+ <para>If you do not know whether or not the hardware clock is set
+ to UTC, you can find out after you have booted the new machine by running
+ the <userinput>hwclock --localtime --show</userinput> command, and if
+ necessary editing the /etc/sysconfig/clock script. The worst that will
+ happen if you make a wrong guess here is that the time displayed will be
+ wrong.</para>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../bootscripts/common/setclock.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'c'])"/>
+
+<screen><userinput>cat > ${LFS}/etc/sysconfig/clock << "EOF"
+<literal># Begin /etc/sysconfig/clock
+
+UTC=1
+
+# End /etc/sysconfig/clock</literal>
+EOF</userinput></screen>
+
</sect2>
<sect2 role="content">
Modified: branches/cross-lfs/BOOK/boot/common/pwdgroup.xml
===================================================================
--- branches/cross-lfs/BOOK/boot/common/pwdgroup.xml 2005-10-23 21:25:50 UTC
(rev 7077)
+++ branches/cross-lfs/BOOK/boot/common/pwdgroup.xml 2005-10-24 12:08:18 UTC
(rev 7078)
@@ -42,7 +42,7 @@
<para>Create the <filename>${LFS}/etc/passwd</filename> file by running
the following command:</para>
-<screen><userinput>cat > /etc/passwd << "EOF"
+<screen><userinput>cat > ${LFS}/etc/passwd << "EOF"
<literal>root::0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
@@ -66,7 +66,7 @@
<para>Create the <filename>${LFS}/etc/group</filename> file by running
the following command:</para>
-<screen><userinput>cat > /etc/group << "EOF"
+<screen><userinput>cat > ${LFS}/etc/group << "EOF"
<literal>root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
Modified: branches/cross-lfs/BOOK/bootscripts/common/setclock.xml
===================================================================
--- branches/cross-lfs/BOOK/bootscripts/common/setclock.xml 2005-10-23
21:25:50 UTC (rev 7077)
+++ branches/cross-lfs/BOOK/bootscripts/common/setclock.xml 2005-10-24
12:08:18 UTC (rev 7078)
@@ -14,7 +14,7 @@
<primary sortas="d-setclock">setclock</primary>
<secondary>configuring</secondary></indexterm>
- <para>The <command>setclock</command> script reads the time from the
+ <para os="a">The <command>setclock</command> script reads the time from the
hardware clock, also known as the BIOS or the Complementary Metal Oxide
Semiconductor (CMOS) clock. If the hardware clock is set to UTC, this
script will convert the hardware clock's time to the local time using
@@ -23,7 +23,7 @@
is no way to detect whether or not the hardware clock is set to UTC, so
this needs to be configured manually.</para>
- <para>If you cannot remember whether or not the hardware clock is set
+ <para os="b">If you cannot remember whether or not the hardware clock is set
to UTC, find out by running the <userinput>hwclock --localtime
--show</userinput> command. This will display what the current time is
according to the hardware clock. If this time matches whatever your
@@ -34,11 +34,11 @@
For example, if you are currently in the MST timezone, which is also
known as GMT -0700, add seven hours to the local time.</para>
- <para>Change the value of the <envar>UTC</envar> variable below
+ <para os="c">Change the value of the <envar>UTC</envar> variable below
to a value of <option>0</option> (zero) if the hardware clock
is <emphasis>not</emphasis> set to UTC time.</para>
- <para>Create a new file <filename>/etc/sysconfig/clock</filename> by running
+ <para os="d">Create a new file <filename>/etc/sysconfig/clock</filename> by
running
the following:</para>
<screen><userinput>cat > /etc/sysconfig/clock << "EOF"
@@ -49,7 +49,7 @@
# End /etc/sysconfig/clock</literal>
EOF</userinput></screen>
- <para>A good hint explaining how to deal with time on LFS is available
+ <para os="e">A good hint explaining how to deal with time on LFS is available
at <ulink url="&hints-root;time.txt"/>. It explains issues such as
time zones, UTC, and the <envar>TZ</envar> environment variable.</para>
Modified: branches/cross-lfs/BOOK/general.ent
===================================================================
--- branches/cross-lfs/BOOK/general.ent 2005-10-23 21:25:50 UTC (rev 7077)
+++ branches/cross-lfs/BOOK/general.ent 2005-10-24 12:08:18 UTC (rev 7078)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "7.0-cross-lfs-20051023">
+<!ENTITY version "7.0-cross-lfs-20051024">
<!ENTITY version-x86 "&version;-x86">
<!ENTITY version-x86_64 "&version;-x86_64-Multilib">
<!ENTITY version-x86_64-64 "&version;-x86_64">
@@ -12,7 +12,7 @@
<!ENTITY version-mips64-64 "&version;-MIPS64">
<!ENTITY version-alpha "&version;-ALPHA">
-<!ENTITY releasedate "October 23, 2005">
+<!ENTITY releasedate "October 24, 2005">
<!ENTITY milestone "7.0">
<!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]"
-->
Modified: branches/cross-lfs/BOOK/introduction/common/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/common/changelog.xml 2005-10-23
21:25:50 UTC (rev 7077)
+++ branches/cross-lfs/BOOK/introduction/common/changelog.xml 2005-10-24
12:08:18 UTC (rev 7078)
@@ -39,9 +39,19 @@
-->
<listitem>
- <para>October 13, 2005</para>
+ <para>October 24, 2005</para>
<itemizedlist>
<listitem>
+ <para>[ken] - add ${LFS} when creating passwd, group in chapter 7,
and add
+ ${LFS}/etc/sysconfig/clock. Thanks to Duncan Webb.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
+ <para>October 18, 2005</para>
+ <itemizedlist>
+ <listitem>
<para>[jim] - Updated to File 4.16.</para>
</listitem>
<listitem>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page