[Lunar-commits] r18813 - in moonbase/trunk/filesys: e2fsprogs e2fsprogs/init.d udev

Moritz Heiber moe at lunar-linux.org
Tue Feb 21 23:39:19 UTC 2006


Author: moe
Date: 2006-02-21 23:39:18 +0000 (Tue, 21 Feb 2006)
New Revision: 18813

Modified:
   moonbase/trunk/filesys/e2fsprogs/DETAILS
   moonbase/trunk/filesys/e2fsprogs/init.d/mount
   moonbase/trunk/filesys/udev/BUILD
   moonbase/trunk/filesys/udev/DEPENDS
   moonbase/trunk/filesys/udev/DETAILS
Log:
Alright, I sort of finally understood how this is supposed to
work now: udev is now resposible for both, device handling AND
hotplug events of any sorts (hence the helper programs like
firmware helper). You just need the proper rules.

Our rule set is fairly complete .. but I'm sure its still
missing vital rules. So if SOMETHING doesn't work yet
(especially firmware/hotplug/hal related) please report it
IMMEDIANTLY so that we can push out the proper rules.

* Fix udev to install udevsend and udevstart
  - udevsend is only provided for legancy purposes
  - udevstart's capabilities aren't implented with udevd
    yet and thus its still required

* hotplug is gone. We should remove the package IMMEDIANTLY
  and every listed dependency.

* Added a custom rules file for proper firmware loading
  (required for ipw* wifi ethernet drivers!)

* Fix the mount script AGAIN to not set any hotplug agent
  inside the /proc directory tree as that is considered
  deprecated. udevd now intefaces directly with the kernel's
  uevent/inotify core.

* Bump both UPDATED fields so that everybody gets the latest
  shiiihat!




Modified: moonbase/trunk/filesys/e2fsprogs/DETAILS
===================================================================
--- moonbase/trunk/filesys/e2fsprogs/DETAILS	2006-02-21 21:32:50 UTC (rev 18812)
+++ moonbase/trunk/filesys/e2fsprogs/DETAILS	2006-02-21 23:39:18 UTC (rev 18813)
@@ -5,7 +5,7 @@
       SOURCE_VFY=sha1:aa8915fe43bc7cf5fba633df7041009ce9981551
         WEB_SITE=http://e2fsprogs.sourceforge.net
          ENTERED=20010922
-         UPDATED=20060221
+         UPDATED=20060222
            SHORT="Utilities for the EXT2 file system."
 cat << EOF
 e2fsprogs - The EXT2 file system utilities and libraries.  EXT2 stands

Modified: moonbase/trunk/filesys/e2fsprogs/init.d/mount
===================================================================
--- moonbase/trunk/filesys/e2fsprogs/init.d/mount	2006-02-21 21:32:50 UTC (rev 18812)
+++ moonbase/trunk/filesys/e2fsprogs/init.d/mount	2006-02-21 23:39:18 UTC (rev 18813)
@@ -197,7 +197,7 @@
 		run_with_msg "Starting devfsd" "devfsd /dev"
 	elif [ "$DEVNODES" = "udev" ]; then
 		run_with_msg " * Mounting tmpfs on /dev" "mount -t tmpfs tmpfs /dev -o size=6m,mode=0755"
-		run_with_msg "Setting /sbin/udevsend to manage hotplug events" "echo /sbin/udevsend > /proc/sys/kernel/hotplug"
+		run_without_msg "echo > /proc/sys/kernel/hotplug" # Hotplug agents are deprecated!
 		run_with_msg "Creating udev device nodes on /dev" "/sbin/udevstart"
                 run_with_msg "Starting udev device handling daemon" "/sbin/udevd --daemon"
 		run_without_msg "mkdir -p /dev/{pts,shm}"

Modified: moonbase/trunk/filesys/udev/BUILD
===================================================================
--- moonbase/trunk/filesys/udev/BUILD	2006-02-21 21:32:50 UTC (rev 18812)
+++ moonbase/trunk/filesys/udev/BUILD	2006-02-21 23:39:18 UTC (rev 18813)
@@ -6,11 +6,16 @@
   
     patch_it $SOURCE2 0  &&
     patch_it $SOURCE3 0  &&
-    patch_it $SOURCE4 0  &&
 
-    make udevdir=/dev EXTRAS="${UDEV_EXTRAS}"  &&
+    make EXTRAS="${UDEV_EXTRAS}"  &&
     prepare_install  &&
-    make udevdir=/dev EXTRAS="${UDEV_EXTRAS}" install  &&
+    make EXTRAS="${UDEV_EXTRAS}" install   &&
+
+
+    # Deprecated .. but udevd still doesn't do what udevstart does
+    # udevsend only provided for legacy purposes
+    install -m755 udevsend udevstart /sbin &&
+    install -m644 udevsend.8 udevstart.8 /usr/share/man/man8 &&
  
     # install the init.d script
     # we cannot use automagic install via coretools
@@ -18,9 +23,10 @@
     # and would interfere with boot/{reboot,halt}
     mkdir -p /etc/udev/rules.d /etc/udev/scripts.d  &&
 
-    install -m755 ${SCRIPT_DIRECTORY}/udev /etc/init.d/  &&
-    install -m755 ${SOURCE_DIRECTORY}/etc/udev/gentoo/udev.rules \
-		  /etc/udev/rules.d/50-udev.rules  &&
+    install -m755 ${SCRIPT_DIRECTORY}/udev /etc/init.d/  		&&
+    install -m644 ${SOURCE_CACHE}/${SOURCE4} /etc/udev/rules.d/		 		&&
+    install -m644 ${SOURCE_DIRECTORY}/etc/udev/gentoo/udev.rules \
+		  /etc/udev/rules.d/50-udev.rules  			&&
 
     for script in ide-devfs.sh raid-devfs.sh scsi-devfs.sh 
     do

Modified: moonbase/trunk/filesys/udev/DEPENDS
===================================================================
--- moonbase/trunk/filesys/udev/DEPENDS	2006-02-21 21:32:50 UTC (rev 18812)
+++ moonbase/trunk/filesys/udev/DEPENDS	2006-02-21 23:39:18 UTC (rev 18813)
@@ -1,3 +1 @@
-depends hotplug  &&
 depends sysfsutils
-

Modified: moonbase/trunk/filesys/udev/DETAILS
===================================================================
--- moonbase/trunk/filesys/udev/DETAILS	2006-02-21 21:32:50 UTC (rev 18812)
+++ moonbase/trunk/filesys/udev/DETAILS	2006-02-21 23:39:18 UTC (rev 18813)
@@ -2,29 +2,36 @@
          VERSION=085
           SOURCE=$MODULE-$VERSION.tar.bz2
          SOURCE2=scsi-devfs.sh.patch
-         SOURCE3=udev-makefile.patch.bz2
-         SOURCE4=udev.rules-1.patch.bz2
+         SOURCE3=udev.rules-1.patch.bz2
+	 SOURCE4=05-firmware-${VERSION}.rules
       SOURCE_URL=http://www.kernel.org/pub/linux/utils/kernel/hotplug/
      SOURCE2_URL=$PATCH_URL/
      SOURCE3_URL=$PATCH_URL/
      SOURCE4_URL=$PATCH_URL/
       SOURCE_VFY=sha1:a6949fb7259f3b81fe7fb477bfc1b137a984467b
      SOURCE2_VFY=sha1:9fc20cdd3ae95476dc066b2ff20c167f5c41c736
-     SOURCE3_VFY=sha1:403208b7898cab30573dcc9d0ace273a3d8e5c05
-     SOURCE4_VFY=sha1:34cca0d34aed61cb25618fca87a194199d992d34
+     SOURCE3_VFY=sha1:34cca0d34aed61cb25618fca87a194199d992d34
+     SOURCE4_VFY=sha1:30d59242037bb8f9ebec4a367a7ba3cf2422f065
         WEB_SITE=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
          ENTERED=20040104
-         UPDATED=20060221
+         UPDATED=20060222
            PSAFE=no
-           SHORT="Device naming from userspace for 2.6+ kernels"
+           SHORT="hotplug and device handling daemon"
 
 cat << EOF
-Future substitute of devfs in 2.6+ kernels. udev's goals:
-* run in userspace
-* create a dynamic /dev
-* allow everyone to not care about major/minor numbers
-* provide LSB standard names
-* provide consistent device naming if wanted
-* handles /sbin/hotplug call
-* provides protection for "out of order" invocations
+udev is supposed to provide a framework for hotpluggable devices
+under linux 2.6.x carrying an event listening daemon that also
+creates the necesserary nodes for the hotplugged devices inside
+the /dev directory.
+
+Its behaviour can be altered by a set of rules defined in udev(7).
+udev superseeds devfs and renders it obsolete. Some of the
+differences are:
+
+* udev runs completely in userspace. No kernel interaction especially
+  in device naming.
+* udev creates a dynamic /dev directory with ever changing device nodes
+  that fit your needs and rules
+* udev provides LSB standard device names
+* udev is also the hotplug handler of the future
 EOF   



More information about the Lunar-commits mailing list