ソースを参照

Some more fixes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10479 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Krejzi 11 年 前
コミット
720f253e88

+ 1 - 1
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>
 

+ 0 - 11
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>

+ 6 - 8
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>

+ 5 - 1
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>

+ 20 - 8
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>
 

+ 1 - 1
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>

+ 0 - 1
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>