cvs commit: LFS/BOOK/chapter06 udev.xml

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Tue Jun 15 12:28:47 PDT 2004


winkie      04/06/15 13:28:47

  Modified:    BOOK/chapter01 changelog.xml
               BOOK/chapter03 packages.xml patches.xml
               BOOK/chapter05 udev.xml
               BOOK/chapter06 udev.xml
  Log:
  Dropped the Udev patch in favor of separate configuration files
  Properly recreate /etc/hotplug.d/default/udev.hotplug
  
  Revision  Changes    Path
  1.813     +7 -1      LFS/BOOK/chapter01/changelog.xml
  
  Index: changelog.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter01/changelog.xml,v
  retrieving revision 1.812
  retrieving revision 1.813
  diff -u -r1.812 -r1.813
  --- changelog.xml	15 Jun 2004 18:07:02 -0000	1.812
  +++ changelog.xml	15 Jun 2004 19:28:46 -0000	1.813
  @@ -57,7 +57,7 @@
   <listitem><para>sysklogd-1.4.1-signal-1.patch</para></listitem>
   <listitem><para>sysvinit-2.85-proclen-1.patch</para></listitem>
   <listitem><para>udev-027</para></listitem>
  -<listitem><para>udev-027-config-1.patch</para></listitem>
  +<listitem><para>udev-config-1.permissions</para></listitem>
   <listitem><para>util-linux-2.12a-kernel_headers-1.patch</para></listitem>
   <listitem><para>vim-6.3 language files</para></listitem>
   </itemizedlist>
  @@ -76,6 +76,12 @@
   </itemizedlist>
   </listitem>
   
  +<listitem><para>June 15, 2004 [winkie]: Recreate Udev's entry in /etc/hotplug.d,
  +since it's not correct for our purposes by default.</para></listitem>
  +
  +<listitem><para>June 15, 2004 [winkie]: Dropped the Udev patch in favor copying
  +the configuration file(s) to /etc/udev after installation.</para></listitem>
  +
   <listitem><para>June 15, 2004 [winkie]: Upgraded to Sed 4.1.</para></listitem>
   
   <listitem><para>June 15, 2004 [winkie]: Upgraded to Udev 027.</para></listitem>
  
  
  
  1.17      +14 -1     LFS/BOOK/chapter03/packages.xml
  
  Index: packages.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter03/packages.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- packages.xml	10 Jun 2004 08:18:06 -0000	1.16
  +++ packages.xml	15 Jun 2004 19:28:46 -0000	1.17
  @@ -376,6 +376,20 @@
   </varlistentry>
   
   <varlistentry>
  +<term>Udev Permissions Configuration - 2 KB:</term>
  +<listitem>
  +<para><ulink url="http://downloads.linuxfromscratch.org/udev-config-1.permissions"/></para>
  +</listitem>
  +</varlistentry>
  +
  +<varlistentry>
  +<term>Udev Rules Configuration - 1 KB:</term>
  +<listitem>
  +<para><ulink url="http://downloads.linuxfromscratch.org/udev-config-1.rules"/></para>
  +</listitem>
  +</varlistentry>
  +
  +<varlistentry>
   <term>Util-linux (&util-linux-version;) - 1,814 KB:</term>
   <listitem>
   <para><ulink url="&freshmeat;util-linux/"/></para>
  @@ -396,7 +410,6 @@
   </listitem>
   </varlistentry>
   
  -
   <varlistentry>
   <term>Zlib (&zlib-version;) - 277 KB:</term>
   <listitem>
  
  
  
  1.21      +0 -7      LFS/BOOK/chapter03/patches.xml
  
  Index: patches.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter03/patches.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- patches.xml	14 Jun 2004 15:17:44 -0000	1.20
  +++ patches.xml	15 Jun 2004 19:28:46 -0000	1.21
  @@ -161,13 +161,6 @@
   </varlistentry>
   
   <varlistentry>
  -<term>Udev Configuration Patch - 6 KB:</term>
  -<listitem>
  -<para><ulink url="&patches-root;udev-&udev-version;-config-1.patch"/></para>
  -</listitem>
  -</varlistentry>
  -
  -<varlistentry>
   <term>Util-Linux Kernel Headers Patch - 3 KB:</term>
   <listitem>
   <para><ulink url="&patches-root;util-linux-&util-linux-version;-kernel_headers-1.patch"/></para>
  
  
  
  1.9       +6 -11     LFS/BOOK/chapter05/udev.xml
  
  Index: udev.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter05/udev.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- udev.xml	8 Jun 2004 01:58:48 -0000	1.8
  +++ udev.xml	15 Jun 2004 19:28:46 -0000	1.9
  @@ -31,13 +31,6 @@
   <sect2 role="installation">
   <title>Installation of Udev</title>
   
  -<para>By default, the permissions udev assigns to nodes are all uniform,
  -being owned by user root, group root, and only accessible to root. As you
  -can easily imagine, this isn't ideal. Give it a much better configuration
  -by applying the following patch:</para>
  -
  -<screen><userinput>patch -Np1 -i ../udev-&udev-version;-config-1.patch</userinput></screen>
  -
   <para>The udevstart program hardcodes the path to the udev program in itself,
   which is bad since we install udev in a non-standard location. Fix this by
   running the following:</para>
  @@ -53,13 +46,15 @@
   
   <screen><userinput>make prefix=/tools etcdir=/tools/etc</userinput></screen>
   
  -<para>Generate Udev's main configuration file:</para>
  +<para>Install it:</para>
   
  -<screen><userinput>make udevdir=/dev etc/udev/udev.conf</userinput></screen>
  +<screen><userinput>make DESTDIR=/tools udevdir=/dev install</userinput></screen>
   
  -<para>Finally, install it:</para>
  +<para>Udev's configuration is far from ideal by default, so we install our own
  +configuration files here:</para>
   
  -<screen><userinput>make DESTDIR=/tools install</userinput></screen>
  +<screen><userinput>cp ../udev-config-1.permissions /tools/etc/udev/permissions.d/00-lfs.permissions
  +cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules</userinput></screen>
   
   </sect2>
   
  
  
  
  1.9       +12 -9     LFS/BOOK/chapter06/udev.xml
  
  Index: udev.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter06/udev.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- udev.xml	8 Jun 2004 01:58:48 -0000	1.8
  +++ udev.xml	15 Jun 2004 19:28:46 -0000	1.9
  @@ -22,21 +22,24 @@
   <sect2 role="installation">
   <title>Installation of Udev</title>
   
  -<para>By default, the permissions udev assigns to nodes are all uniform,
  -being owned by user root, group root, and only accessible to root. As you
  -can easily imagine, this isn't ideal. Give it a much better configuration
  -by applying the following patch:</para>
  -
  -<screen><userinput>patch -Np1 -i ../udev-&udev-version;-config-1.patch</userinput></screen>
  -
  -<para>Now compile Udev:</para>
  +<para>First compile Udev:</para>
   
   <screen><userinput>make udevdir=/dev</userinput></screen>
   
  -<para>Finally, install it:</para>
  +<para>Install it:</para>
   
   <screen><userinput>make udevdir=/dev install</userinput></screen>
   
  +<para>Ensure that Hotplug addresses Udev correctly:</para>
  +
  +<screen><userinput>ln -sf /sbin/udev /etc/hotplug.d/default/udev.hotplug</userinput></screen>
  +
  +<para>Udev's configuration is far from ideal by default, so we install our own
  +configuration files here:</para>
  +
  +<screen><userinput>cp ../udev-config-1.permissions /etc/udev/permissions.d/00-lfs.permissions
  +cp ../udev-config-1.rules /etc/udev/rules.d/00-lfs.rules</userinput></screen>
  +
   </sect2>
   
   
  
  
  



More information about the lfs-book mailing list