aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2012-08-12 20:02:11 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2012-08-12 20:02:11 +0000
commitd29a03b05bec90bd48f2d93647c5120133c1cdbd (patch)
tree2c3a2d336c20845910b18bd8a20245af3ca63443
parent0840dab001c684c0014ed46cd860dae282756642 (diff)
Update to udev (systemd)-188
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9933 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter01/changelog.xml10
-rw-r--r--chapter06/systemd.xml9
-rw-r--r--chapter07/network.xml21
-rw-r--r--packages.ent12
4 files changed, 36 insertions, 16 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index b6e636cc0..d7d27981f 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -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>
diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml
index b31b0de6b..843f702df 100644
--- a/chapter06/systemd.xml
+++ b/chapter06/systemd.xml
@@ -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">
diff --git a/chapter07/network.xml b/chapter07/network.xml
index 3f476d550..f5dd1faa8 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -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>
-
-<screen><userinput>for NIC in /sys/class/net/* ; do
- INTERFACE=${NIC##*/} udevadm test --action=add $NIC
-done</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>
+ <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 role="nodump"><userinput>cat /etc/udev/rules.d/70-persistent-net.rules</userinput></screen>
+ <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>
+
<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),
diff --git a/packages.ent b/packages.ent
index 617e33401..0aac3e2b1 100644
--- a/packages.ent
+++ b/packages.ent
@@ -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">