aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrejzi <krejzi@linuxfromscratch.org>2014-02-18 04:07:01 +0000
committerKrejzi <krejzi@linuxfromscratch.org>2014-02-18 04:07:01 +0000
commit720f253e88e7c844f17db49a1f6510c62631b4eb (patch)
tree6dcb178f9879820d211bfcf35cc7ae13e4c8b88c
parent58c8823a5328210c329129f3efbe175723f8466b (diff)
Some more fixes.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10479 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter06/acl.xml2
-rw-r--r--chapter06/dbus.xml11
-rw-r--r--chapter06/libdbus.xml14
-rw-r--r--chapter06/systemd.xml6
-rw-r--r--chapter07/clock.xml28
-rw-r--r--chapter07/network-scripts.xml2
-rw-r--r--chapter09/reboot.xml1
7 files changed, 33 insertions, 31 deletions
diff --git a/chapter06/acl.xml b/chapter06/acl.xml
index 6f3328c3c..77645682c 100644
--- a/chapter06/acl.xml
+++ b/chapter06/acl.xml
@@ -53,7 +53,7 @@
<para>Prepare Acl for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
<para>Compile the package:</para>
diff --git a/chapter06/dbus.xml b/chapter06/dbus.xml
index 6a2f1d7ce..9fae7b1aa 100644
--- a/chapter06/dbus.xml
+++ b/chapter06/dbus.xml
@@ -187,17 +187,6 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
</listitem>
</varlistentry>
- <varlistentry id="libdbus">
- <term><filename class="libraryfile">libdbus-1</filename></term>
- <listitem>
- <para>Contains API functions used to communicate with the D-Bus
- message bus.</para>
- <indexterm zone="ch-system-dbus libdbus">
- <primary sortas="c-libdbus">libdbus</primary>
- </indexterm>
- </listitem>
- </varlistentry>
-
</variablelist>
</sect2>
diff --git a/chapter06/libdbus.xml b/chapter06/libdbus.xml
index 712421e99..6958b2a47 100644
--- a/chapter06/libdbus.xml
+++ b/chapter06/libdbus.xml
@@ -50,11 +50,9 @@
<para>Prepare Libdbus for compilation:</para>
-<screen><userinput remap="configure">./configure --prefix=/usr \
+<screen><userinput remap="configure">./configure --prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib/dbus-1.0 \
- --disable-static</userinput></screen>
+ --localstatedir=/var</userinput></screen>
<para>Compile the package:</para>
@@ -93,7 +91,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
<seglistitem>
<seg>none</seg>
- <seg>libdbus-1.so</seg>
+ <seg>libdbus-1.{a,so}</seg>
<seg>/usr/include/dbus-1.0, /usr/lib/dbus-1.0</seg>
</seglistitem>
</segmentedlist>
@@ -103,12 +101,12 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so</useri
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
- <varlistentry id="libdbus-lib">
- <term><filename class="libraryfile">libdbus-1.so</filename></term>
+ <varlistentry id="libdbus-1">
+ <term><filename class="libraryfile">libdbus-1</filename></term>
<listitem>
<para>Contains API functions used to communicate with the D-Bus
message bus.</para>
- <indexterm zone="ch-system-libdbus libdbus-lib">
+ <indexterm zone="ch-system-libdbus libdbus-1">
<primary sortas="c-libdbus">libdbus</primary>
</indexterm>
</listitem>
diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml
index 4fd5e209f..8bd9d5566 100644
--- a/chapter06/systemd.xml
+++ b/chapter06/systemd.xml
@@ -140,6 +140,10 @@ done</userinput></screen>
<screen><userinput remap="install">mv -v /usr/lib/libnss_myhostname.so.2 /lib</userinput></screen>
+ <para>Remove an unnecessary directory:</para>
+
+<screen><userinput remap="install">rm -rfv /usr/lib/rpm</userinput></screen>
+
<para>Create the Sysvinit compatibility symlinks, so Systemd is used
as the default init system:</para>
@@ -180,7 +184,7 @@ ln -sfv ../lib/systemd/systemd /sbin/init</userinput></screen>
<seg>/etc/binfmt.d, /etc/init.d, /etc/kernel, /etc/modules-load.d,
/etc/sysctl.d, /etc/systemd, /etc/tmpfiles.d, /etc/udev,
/etc/xdg/systemd, /lib/systemd, /lib/udev, /usr/include/systemd,
- /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d, /usr/lib/rpm,
+ /usr/lib/binfmt.d, /usr/lib/kernel, /usr/lib/modules-load.d,
/usr/lib/sysctl.d, /usr/lib/systemd, /usr/lib/tmpfiles.d,
/usr/share/doc/systemd-&systemd-version;, /usr/share/systemd,
/var/lib/systemd, /var/log/journal</seg>
diff --git a/chapter07/clock.xml b/chapter07/clock.xml
index 3a82e7999..a4f204f18 100644
--- a/chapter07/clock.xml
+++ b/chapter07/clock.xml
@@ -18,12 +18,6 @@
<command>systemd-timedated</command> system service, which configures
system clock and timezone.</para>
- <para>Systemd provides a <command>timedatectl</command> utility which is
- used to communicate with <command>systemd-timedated</command>. It can be used
- to set the system clock in local time or UTC time, depending on the hardware
- clock setting. By default, <command>systemd-timedated</command> will assume
- that clock is set to UTC time.</para>
-
<para>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
@@ -35,8 +29,26 @@
timezone, which is also known as GMT -0700, add seven hours to the local
time.</para>
- <para>If your clock is set to local time, tell <command>systemd-timedated</command>
- about it by running the following command:</para>
+ <para><command>systemd-timedated</command> reads <filename>/etc/adjtime</filename>,
+ and depending on the contents of the file, it sets the clock to either UTC or
+ local time.</para>
+
+ <para>Create the <filename>/etc/adjtime</filename> file with the following contents
+ if your hardware clock is set to local time:</para>
+
+<screen role="nodump"><userinput>cat &gt; /etc/adjtime &lt;&lt; "EOF"
+<literal>0.0 0 0.0
+0
+LOCAL</literal>
+EOF</userinput></screen>
+
+ <para>If <filename>/etc/adjtime</filename> isn't present at first boot,
+ <command>systemd-timedated</command> will assume that hardware clock is
+ set to UTC and adjust the file according to that.</para>
+
+ <para>You can also use the <command>timedatectl</command> utility to tell
+ <command>systemd-timedated</command> if your hardware clock is set to
+ UTC or local time:</para>
<screen role="nodump"><userinput>timedatectl set-local-rtc 1</userinput></screen>
diff --git a/chapter07/network-scripts.xml b/chapter07/network-scripts.xml
index 0bad2a0bb..eb08184e2 100644
--- a/chapter07/network-scripts.xml
+++ b/chapter07/network-scripts.xml
@@ -56,7 +56,7 @@
<seglistitem>
<seg>ifdown, ifup, ipv4-static</seg>
- <seg>ifupdown@.service, nscd.service</seg>
+ <seg>ifupdown@.service</seg>
<seg>/etc/sysconfig, /lib/services, /lib/lsb (symbolic link)</seg>
</seglistitem>
</segmentedlist>
diff --git a/chapter09/reboot.xml b/chapter09/reboot.xml
index cf95c024f..ee578305b 100644
--- a/chapter09/reboot.xml
+++ b/chapter09/reboot.xml
@@ -73,7 +73,6 @@
<listitem><para>/etc/vimrc </para></listitem>
<listitem><para>/root/.bash_profile </para></listitem>
<listitem><para>/root/.bashrc </para></listitem>
- <listitem><para>/etc/sysconfig/network </para></listitem>
<listitem><para>/etc/sysconfig/ifconfig.eth0 </para></listitem>
</itemizedlist>
</listitem>