[lfs-book] r9933 - in trunk/BOOK: . chapter01 chapter06 chapter07

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Sun Aug 12 13:02:15 PDT 2012


Author: bdubbs
Date: 2012-08-12 14:02:11 -0600 (Sun, 12 Aug 2012)
New Revision: 9933

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/systemd.xml
   trunk/BOOK/chapter07/network.xml
   trunk/BOOK/packages.ent
Log:
Update to udev (systemd)-188

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2012-08-12 18:51:28 UTC (rev 9932)
+++ trunk/BOOK/chapter01/changelog.xml	2012-08-12 20:02:11 UTC (rev 9933)
@@ -38,6 +38,16 @@
 -->
 
     <listitem>
+      <para>2012-08-12</para>
+      <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Update to udev (systemd)-188. Fixes 
+          <ulink url="&lfs-ticket-root;3152">#3152</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>2012-08-06</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/chapter06/systemd.xml
===================================================================
--- trunk/BOOK/chapter06/systemd.xml	2012-08-12 18:51:28 UTC (rev 9932)
+++ trunk/BOOK/chapter06/systemd.xml	2012-08-12 20:02:11 UTC (rev 9933)
@@ -54,6 +54,15 @@
     <para>Install the package:</para>
 
 <screen><userinput remap="install">make -f udev-lfs-&systemd-version;/Makefile.lfs install</userinput></screen>
+
+    <para>Finally set up the persistent network udev rules.  This task will be
+    explained in detail in <xref linkend='stable-net-names'/>.  Note that the
+    <filename class='directory'>/sys</filename> and <filename
+    class='directory'>/proc</filename> filesystems must be mounted in the
+    chroot environment as explained at the beginning of this chapter for the
+    following script to work.</para>
+
+<screen><userinput remap="install">bash udev-lfs-&systemd-version;/init-net-rules.sh</userinput></screen>
   </sect2>
 
   <sect2 id="contents-udev" role="content">

Modified: trunk/BOOK/chapter07/network.xml
===================================================================
--- trunk/BOOK/chapter07/network.xml	2012-08-12 18:51:28 UTC (rev 9932)
+++ trunk/BOOK/chapter07/network.xml	2012-08-12 20:02:11 UTC (rev 9933)
@@ -23,7 +23,7 @@
   symlinks from all run-level directories (<filename
   class="directory">/etc/rc.d/rc*.d</filename>).</para>
 
-  <sect2>
+  <sect2 id='stable-net-names'>
     <title>Creating stable names for network interfaces</title>
 
     <para>If there is only one network interface in the system to be
@@ -41,18 +41,19 @@
     avoid this, Udev comes with a script and some rules to assign stable names
     to network cards based on their MAC address.</para>
 
-    <para>Pre-generate the rules to ensure the same names get assigned to the
-    same devices at every boot, including the first:</para>
+    <para>The rules were pre-generated in the build instructions for
+    <application>udev (systemd)</application> in the last chapter.  Inspect the
+    <filename>/etc/udev/rules.d/70-persistent-net.rules</filename> file, to
+    find out which name was assigned to which network device:</para>
 
-<screen><userinput>for NIC in /sys/class/net/* ; do
-    INTERFACE=${NIC##*/} udevadm test --action=add $NIC
-done</userinput></screen>
+<screen role="nodump"><userinput>cat /etc/udev/rules.d/70-persistent-net.rules</userinput></screen>
 
-    <para>Now, inspect the <filename>/etc/udev/rules.d/70-persistent-net.rules</filename>
-    file, to find out which name was assigned to which network device:</para>
+    <note><para>In some cases such as when MAC addresess have been assigned to
+    a network card manually or in a virtual envirnment such as Xen,
+    the network rules file may not have been generated because addresses 
+    are not consistently assigned.  In these cases, just continue to
+    the next section.</para></note>
 
-<screen role="nodump"><userinput>cat /etc/udev/rules.d/70-persistent-net.rules</userinput></screen>
-
     <para>The file begins with a comment block followed by two lines for each
     NIC. The first line for each NIC is a commented description showing its
     hardware IDs (e.g. its PCI vendor and device IDs, if it's a PCI card),

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent	2012-08-12 18:51:28 UTC (rev 9932)
+++ trunk/BOOK/packages.ent	2012-08-12 20:02:11 UTC (rev 9933)
@@ -524,10 +524,10 @@
 <!ENTITY texinfo-ch6-du "21 MB">
 <!ENTITY texinfo-ch6-sbu "0.3 SBU">
 
-<!ENTITY systemd-version "187">
-<!ENTITY systemd-size    "1,316 KB">
+<!ENTITY systemd-version "188">
+<!ENTITY systemd-size    "1,324 KB">
 <!ENTITY systemd-url     "http://www.freedesktop.org/software/systemd/systemd-&systemd-version;.tar.xz">
-<!ENTITY systemd-md5     "26606e3c84448800ef0b3ffd57e6e8b6">
+<!ENTITY systemd-md5     "d89b42699695554949d072ef46c0dfc9">
 <!ENTITY systemd-home    "http://www.freedesktop.org/wiki/Software/systemd/">
 <!ENTITY systemd-ch6-du  "17 MB">
 <!ENTITY systemd-ch6-sbu "0.1 SBU">
@@ -540,10 +540,10 @@
 <!ENTITY tzdata-ch6-du "5.6 MB">
 <!ENTITY tzdata-ch6-sbu "0.1 SBU">
 
-<!ENTITY udev-lfs        "udev-lfs-&systemd-version;-2"> 
-<!ENTITY udev-lfs-size   "14 KB">   
+<!ENTITY udev-lfs        "udev-lfs-&systemd-version;"> 
+<!ENTITY udev-lfs-size   "17 KB">   
 <!ENTITY udev-lfs-url    "&anduin-other;&udev-lfs;.tar.bz2">
-<!ENTITY udev-lfs-md5    "089ae18d3fe80d7c051531feeba51446">    
+<!ENTITY udev-lfs-md5    "fcc1c0337a2b18f63dfeea6f8d0f5a21">    
 <!ENTITY udev-lfs-home   " ">
 
 <!ENTITY util-linux-version "2.21.2">




More information about the lfs-book mailing list