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 @@
Prepare Acl for compilation:
-./configure --prefix=/usr
+./configure --prefix=/usr --libexecdir=/usr/lib
Compile the package:
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
-
- libdbus-1
-
- Contains API functions used to communicate with the D-Bus
- message bus.
-
- libdbus
-
-
-
-
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 @@
Prepare Libdbus for compilation:
-./configure --prefix=/usr \
+./configure --prefix=/usr \
--sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib/dbus-1.0 \
- --disable-static
+ --localstatedir=/var
Compile the package:
@@ -93,7 +91,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so
none
- libdbus-1.so
+ libdbus-1.{a,so}
/usr/include/dbus-1.0, /usr/lib/dbus-1.0
@@ -103,12 +101,12 @@ ln -sfv ../../lib/$(readlink /usr/lib/libdbus-1.so) /usr/lib/libdbus-1.so
-
- libdbus-1.so
+
+ libdbus-1
Contains API functions used to communicate with the D-Bus
message bus.
-
+
libdbus
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
mv -v /usr/lib/libnss_myhostname.so.2 /lib
+ Remove an unnecessary directory:
+
+rm -rfv /usr/lib/rpm
+
Create the Sysvinit compatibility symlinks, so Systemd is used
as the default init system:
@@ -180,7 +184,7 @@ ln -sfv ../lib/systemd/systemd /sbin/init
/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
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 @@
systemd-timedated system service, which configures
system clock and timezone.
- Systemd provides a timedatectl utility which is
- used to communicate with systemd-timedated. It can be used
- to set the system clock in local time or UTC time, depending on the hardware
- clock setting. By default, systemd-timedated will assume
- that clock is set to UTC time.
-
If you cannot remember whether or not the hardware clock is set to UTC,
find out by running the hwclock --localtime --show
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.
- If your clock is set to local time, tell systemd-timedated
- about it by running the following command:
+ systemd-timedated reads /etc/adjtime,
+ and depending on the contents of the file, it sets the clock to either UTC or
+ local time.
+
+ Create the /etc/adjtime file with the following contents
+ if your hardware clock is set to local time:
+
+cat > /etc/adjtime << "EOF"
+0.0 0 0.0
+0
+LOCAL
+EOF
+
+ If /etc/adjtime isn't present at first boot,
+ systemd-timedated will assume that hardware clock is
+ set to UTC and adjust the file according to that.
+
+ You can also use the timedatectl utility to tell
+ systemd-timedated if your hardware clock is set to
+ UTC or local time:
timedatectl set-local-rtc 1
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 @@
ifdown, ifup, ipv4-static
- ifupdown@.service, nscd.service
+ ifupdown@.service
/etc/sysconfig, /lib/services, /lib/lsb (symbolic link)
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 @@
/etc/vimrc
/root/.bash_profile
/root/.bashrc
- /etc/sysconfig/network
/etc/sysconfig/ifconfig.eth0