packages: udev/udev-initramfs-bottom, udev/udev-initramfs-hook, udev/udev-i...

baggins baggins at pld-linux.org
Wed Jan 20 17:01:59 CET 2010


Author: baggins                      Date: Wed Jan 20 16:01:59 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated

---- Files affected:
packages/udev:
   udev-initramfs-bottom (1.1 -> 1.2) , udev-initramfs-hook (1.4 -> 1.5) , udev-initramfs-premount (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/udev/udev-initramfs-bottom
diff -u packages/udev/udev-initramfs-bottom:1.1 packages/udev/udev-initramfs-bottom:1.2
--- packages/udev/udev-initramfs-bottom:1.1	Tue Feb 24 15:11:12 2009
+++ packages/udev/udev-initramfs-bottom	Wed Jan 20 17:01:54 2010
@@ -13,8 +13,12 @@
 
 # Stop udevd, we'll miss a few events while we run init, but we catch up
 for proc in /proc/[0-9]*; do
-    [ -x $proc/exe ] || continue
-    [ "$(readlink $proc/exe)" != /sbin/udevd ] || kill ${proc#/proc/}
+  [ -x $proc/exe ] || continue
+  if [ "$(readlink $proc/exe)" = /sbin/udevd ]; then
+    # errors must be ignored due to a race with udevd child processes
+    # naturally terminating
+    kill ${proc#/proc/} 2> /dev/null || true
+  fi
 done
 
 # move the /dev tmpfs to the rootfs

================================================================
Index: packages/udev/udev-initramfs-hook
diff -u packages/udev/udev-initramfs-hook:1.4 packages/udev/udev-initramfs-hook:1.5
--- packages/udev/udev-initramfs-hook:1.4	Wed Feb 25 14:00:36 2009
+++ packages/udev/udev-initramfs-hook	Wed Jan 20 17:01:54 2010
@@ -16,28 +16,27 @@
 # udevd uses unix domain sockets for communication
 force_load unix
 
-mkdir -p $DESTDIR/etc/udev/rules.d
-cp -a /etc/udev/*.conf $DESTDIR/etc/udev/
-for f in /etc/udev/rules.d/*device-mapper* ; do
-	cp -a "$f" $DESTDIR/etc/udev/rules.d/
-done
-
-if [ -e /etc/scsi_id.config ]; then
-  cp /etc/scsi_id.config $DESTDIR/etc/
-fi
-
 copy_exec /sbin/udevd      /sbin
 copy_exec /sbin/udevadm    /sbin
 
+mkdir -p $DESTDIR/etc/udev
+cp -a /etc/udev/*.conf $DESTDIR/etc/udev/
+
 mkdir -p $DESTDIR/lib/udev/rules.d
-cp -a /lib/udev/rules.d/* $DESTDIR/lib/udev/rules.d/
-rm -f $DESTDIR/etc/udev/rules.d/75-cd-aliases-generator.rules
+for rules in 30-kernel-compat.rules 50-firmware.rules 50-udev-default.rules \
+	60-cdrom_id.rules 60-floppy.rules 60-persistent-input.rules \
+	60-persistent-storage.rules 61-persistent-storage-edd.rules \
+	80-drivers.rules 64-device-mapper.rules ; do
+	cp -a "$f" $DESTDIR/lib/udev/rules.d/
+  if   [ -e /etc/udev/rules.d/$rules ]; then
+    cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
+  elif [ -e /lib/udev/rules.d/$rules ]; then
+    cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
+  fi
+done
 
 for program in /lib/udev/*_id; do
   copy_exec $program /lib/udev
 done
 
-# udev README says:
-# - The system must have the following group names resolvable at udev startup:
-#     disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, kmem
-egrep '^(disk|cdrom|floppy|tape|audio|video|lp|tty|dialout|kmem):' /etc/group > $DESTDIR/etc/group
+copy_exec /sbin/blkid /sbin

================================================================
Index: packages/udev/udev-initramfs-premount
diff -u packages/udev/udev-initramfs-premount:1.2 packages/udev/udev-initramfs-premount:1.3
--- packages/udev/udev-initramfs-premount:1.2	Fri Feb 27 02:16:13 2009
+++ packages/udev/udev-initramfs-premount	Wed Jan 20 17:01:54 2010
@@ -20,6 +20,11 @@
 udevadm trigger
 udevadm settle || true
 
+if [ -d /sys/bus/scsi ]; then
+	modprobe -q scsi_wait_scan && modprobe -r scsi_wait_scan || true
+	udevadm settle || true
+fi
+
 # If the rootdelay parameter has been set, we wait a bit for devices
 # like usb/firewire disks to settle.
 if [ "$ROOTDELAY" ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/udev/udev-initramfs-bottom?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/udev/udev-initramfs-hook?r1=1.4&r2=1.5&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/udev/udev-initramfs-premount?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list