r9294 - in trunk/BOOK: . bootscripts bootscripts/contrib/lsb-v3 bootscripts/contrib/lsb-v3/init.d bootscripts/lfs/init.d chapter01 chapter06

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Sat May 29 03:41:33 PDT 2010


Author: matthew
Date: 2010-05-29 04:41:33 -0600 (Sat, 29 May 2010)
New Revision: 9294

Modified:
   trunk/BOOK/bootscripts/ChangeLog
   trunk/BOOK/bootscripts/contrib/lsb-v3/ChangeLog
   trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/udev
   trunk/BOOK/bootscripts/lfs/init.d/udev
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/udev.xml
   trunk/BOOK/packages.ent
Log:
Upgrade to Udev-156. Fixes #2671.

Modified: trunk/BOOK/bootscripts/ChangeLog
===================================================================
--- trunk/BOOK/bootscripts/ChangeLog	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/bootscripts/ChangeLog	2010-05-29 10:41:33 UTC (rev 9294)
@@ -1,3 +1,8 @@
+2010-05-29	Matt Burgess <matthew at linuxfromscratch.org>
+   * lfs/init.d/udev: Only copy /lib/udev/devices/null, as Udev >= 155 copies
+     devices from /lib/udev/devices to /dev itself.  Udevd still needs /dev/null
+     present before starting up though.
+
 2010-04-20	Bryan Kadzban <bryan at linuxfromscratch.org>
    * lfs/init.d/udev, lfs/init.d/udev_retry: Add --action=add, to handle udev
    version 152 and newer, which send "change" events by default in udevtrigger

Modified: trunk/BOOK/bootscripts/contrib/lsb-v3/ChangeLog
===================================================================
--- trunk/BOOK/bootscripts/contrib/lsb-v3/ChangeLog	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/bootscripts/contrib/lsb-v3/ChangeLog	2010-05-29 10:41:33 UTC (rev 9294)
@@ -1,4 +1,10 @@
 ChangeLog
+
+20100529 - [matthew]
+                * Only copy /lib/udev/devices/null, as Udev >= 155 copies
+                  devices from /lib/udev/devices to /dev itself.
+                  Udevd still needs /dev/null present before starting up though.
+
 20100529 - [dj] * Sync to LFS-Bootscirpts-20100529
                 * Add test if /dev is already mounted in udev script.
                 * Added --action=add to udevadmin trigger lines of udev script.

Modified: trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/udev
===================================================================
--- trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/udev	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/bootscripts/contrib/lsb-v3/init.d/udev	2010-05-29 10:41:33 UTC (rev 9294)
@@ -56,8 +56,9 @@
 		# the kernel call out to any binary in response to them
 		echo > /proc/sys/kernel/hotplug
 
-		# Copy static device nodes to /dev
-		cp -a /lib/udev/devices/* /dev
+		# Copy the only static device node that Udev >= 155 doesn't
+		# handle to /dev
+		cp -a /lib/udev/devices/null /dev
 
 		# Start the udev daemon to continually watch for, and act on,
 		# uevents

Modified: trunk/BOOK/bootscripts/lfs/init.d/udev
===================================================================
--- trunk/BOOK/bootscripts/lfs/init.d/udev	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/bootscripts/lfs/init.d/udev	2010-05-29 10:41:33 UTC (rev 9294)
@@ -53,8 +53,9 @@
 		# the kernel call out to any binary in response to them
 		echo > /proc/sys/kernel/hotplug
 
-		# Copy static device nodes to /dev
-		cp -a /lib/udev/devices/* /dev
+		# Copy the only static device node that Udev >= 155 doesn't
+		# handle to /dev
+		cp -a /lib/udev/devices/null /dev
 
 		# Start the udev daemon to continually watch for, and act on,
 		# uevents

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/chapter01/changelog.xml	2010-05-29 10:41:33 UTC (rev 9294)
@@ -40,6 +40,10 @@
       <para>2010-05-29</para>
       <itemizedlist>
          <listitem>
+           <para>[matthew] - Upgrade to Udev-156.  Fixes
+           <ulink url="&lfs-ticket-root;2671">#2671</ulink>.</para>
+         </listitem>
+         <listitem>
            <para>[matthew] - Upgrade to Pkg-config-0.25.  Fixes
            <ulink url="&lfs-ticket-root;2670">#2670</ulink>.</para>
          </listitem>

Modified: trunk/BOOK/chapter06/udev.xml
===================================================================
--- trunk/BOOK/chapter06/udev.xml	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/chapter06/udev.xml	2010-05-29 10:41:33 UTC (rev 9294)
@@ -50,12 +50,7 @@
     them being required very early in the boot process, or by Udev itself:</para>
 
 <screen><userinput remap="install">install -dv /lib/{firmware,udev/devices/{pts,shm}}
-mknod -m0666 /lib/udev/devices/null c 1 3
-ln -sv /proc/self/fd /lib/udev/devices/fd
-ln -sv /proc/self/fd/0 /lib/udev/devices/stdin
-ln -sv /proc/self/fd/1 /lib/udev/devices/stdout
-ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
-ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen>
+mknod -m0666 /lib/udev/devices/null c 1 3</userinput></screen>
 
     <para>Prepare the package for compilation:</para>
 

Modified: trunk/BOOK/packages.ent
===================================================================
--- trunk/BOOK/packages.ent	2010-05-29 10:40:19 UTC (rev 9293)
+++ trunk/BOOK/packages.ent	2010-05-29 10:41:33 UTC (rev 9294)
@@ -288,7 +288,7 @@
 <!ENTITY less-ch6-du "2.9 MB">
 <!ENTITY less-ch6-sbu "less than 0.1 SBU">
 
-<!ENTITY lfs-bootscripts-version "20100124">                 <!-- Scripts depend on this format -->
+<!ENTITY lfs-bootscripts-version "20100529">                 <!-- Scripts depend on this format -->
 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">         <!-- Updated in Makefile -->
 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
 <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">           <!-- Updated in Makefile -->
@@ -513,10 +513,10 @@
 <!ENTITY texinfo-ch6-du "21 MB">
 <!ENTITY texinfo-ch6-sbu "0.3 SBU">
 
-<!ENTITY udev-version "154">
-<!ENTITY udev-size "520 KB">
+<!ENTITY udev-version "156">
+<!ENTITY udev-size "521 KB">
 <!ENTITY udev-url "&kernel;linux/utils/kernel/hotplug/udev-&udev-version;.tar.bz2">
-<!ENTITY udev-md5 "28064e0325050a1eedec4c142da65ea7">
+<!ENTITY udev-md5 "5efef35990dd20d8bb459eaff36d1f88">
 <!ENTITY udev-home "&kernel;linux/utils/kernel/hotplug/udev.html">
 <!ENTITY udev-ch6-du "11.6 MB">
 <!ENTITY udev-ch6-sbu "0.2 SBU">




More information about the lfs-book mailing list