packages: udev/start_udev - revert tmpfs compat as udev-core has R:uname(re...

baggins baggins at pld-linux.org
Sat Mar 3 10:37:43 CET 2012


Author: baggins                      Date: Sat Mar  3 09:37:42 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- revert tmpfs compat as udev-core has R:uname(release) >= 2.6.32 for almost a year
  so there is no point in trying to support older kernels and
  devtmpfs IS MANDATORY FOR UDEV >= 181

---- Files affected:
packages/udev:
   start_udev (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: packages/udev/start_udev
diff -u packages/udev/start_udev:1.42 packages/udev/start_udev:1.43
--- packages/udev/start_udev:1.42	Sat Mar  3 10:28:26 2012
+++ packages/udev/start_udev	Sat Mar  3 10:37:37 2012
@@ -68,8 +68,8 @@
 show "Starting udev"
 busy
 
-# mount the devtmpfs (tmpfs on older kernels) on ${udev_root%/}, if not already done
-LANG=C awk "\$2 == \"${udev_root%/}\" && ( \$3 == \"tmpfs\" || \$3 == \"devtmpfs\" ) { exit 1 }" /proc/mounts && {
+# mount the devtmpfs on ${udev_root%/}, if not already done
+LANG=C awk "\$2 == \"${udev_root%/}\" && \$3 == \"devtmpfs\" { exit 1 }" /proc/mounts && {
     	if LANG=C fgrep -q "none ${udev_root%/}/pts " /proc/mounts; then
     		PTSDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
 		mount --move $udev_root/pts "$PTSDIR"
@@ -78,11 +78,7 @@
 		SHMDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
 		mount --move $udev_root/shm "$SHMDIR"
 	fi
-	if grep -qs devtmpfs /proc/filesystems; then
-		mount -n -o mode=0755 -t devtmpfs devtmpfs "$udev_root"
-	else
-		mount -n -o mode=0755 -t tmpfs none "$udev_root"
-	fi
+	mount -n -o mode=0755 -t devtmpfs devtmpfs "$udev_root"
 	mkdir -m 0755 $udev_root/pts
 	mkdir -m 0755 $udev_root/shm
 	if [ -n "$PTSDIR" ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/udev/start_udev?r1=1.42&r2=1.43&f=u



More information about the pld-cvs-commit mailing list