r7484 - in branches/udev_update/BOOK: . chapter01 chapter08

ken at linuxfromscratch.org ken at linuxfromscratch.org
Fri Mar 31 08:51:06 PST 2006


Author: ken
Date: 2006-03-31 09:51:06 -0700 (Fri, 31 Mar 2006)
New Revision: 7484

Modified:
   branches/udev_update/BOOK/chapter01/changelog.xml
   branches/udev_update/BOOK/chapter08/grub.xml
   branches/udev_update/BOOK/general.ent
Log:
Populate /dev/ sufficiently for grub.

Modified: branches/udev_update/BOOK/chapter01/changelog.xml
===================================================================
--- branches/udev_update/BOOK/chapter01/changelog.xml	2006-03-30 21:39:15 UTC (rev 7483)
+++ branches/udev_update/BOOK/chapter01/changelog.xml	2006-03-31 16:51:06 UTC (rev 7484)
@@ -37,6 +37,16 @@
 -->
 
     <listitem>
+      <para>March 31, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[ken] - Add Alexander's command to sufficiently populate  
+	  /dev now that udevstart has gone.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>March 30, 2006</para>
       <itemizedlist>
         <listitem>

Modified: branches/udev_update/BOOK/chapter08/grub.xml
===================================================================
--- branches/udev_update/BOOK/chapter08/grub.xml	2006-03-30 21:39:15 UTC (rev 7483)
+++ branches/udev_update/BOOK/chapter08/grub.xml	2006-03-31 16:51:06 UTC (rev 7484)
@@ -22,6 +22,15 @@
   other architectures should be available in the usual resource-specific
   locations for those architectures.</para>
 
+  <para>Normally, we can rely on Udev to create all the necessary devices,
+  but in chroot that is not true.  Grub will need to access the disk
+  devices, the following command will create them.</para>
+
+<screen><userinput>for DEVICE in /sys/block/*/dev /sys/block/*/*/dev ; do
+     IFS=: read MAJOR MINOR <$DEVICE
+     mknod /dev/`basename ${DEVICE%/dev}` b $MAJOR $MINOR
+done</userinput></screen>
+
   <para>Boot loading can be a complex area, so a few cautionary
   words are in order. Be familiar with the current boot loader and any other
   operating systems present on the hard drive(s) that need to be

Modified: branches/udev_update/BOOK/general.ent
===================================================================
--- branches/udev_update/BOOK/general.ent	2006-03-30 21:39:15 UTC (rev 7483)
+++ branches/udev_update/BOOK/general.ent	2006-03-31 16:51:06 UTC (rev 7484)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "udev_update-20060330">
-<!ENTITY releasedate "March 30, 2006">
+<!ENTITY version "udev_update-20060331">
+<!ENTITY releasedate "March 31, 2006">
 <!ENTITY milestone "6.2">
 <!ENTITY generic-version "udev_update"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
 




More information about the lfs-book mailing list