[arch-commits] Commit in udev/trunk (PKGBUILD udev.install)

Tom Gundersen tomegun at archlinux.org
Sun Feb 26 00:30:23 UTC 2012


    Date: Saturday, February 25, 2012 @ 19:30:23
  Author: tomegun
Revision: 151386

remove /dev/loop0 as it is no longer needed with util-linux-2.21

Modified:
  udev/trunk/PKGBUILD
  udev/trunk/udev.install

--------------+
 PKGBUILD     |    7 -------
 udev.install |   12 ++++++++----
 2 files changed, 8 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-25 23:56:14 UTC (rev 151385)
+++ PKGBUILD	2012-02-26 00:30:23 UTC (rev 151386)
@@ -39,13 +39,6 @@
   cd $srcdir/$pkgname-$pkgver
   make DESTDIR=${pkgdir} install
 
-  # /dev/loop0 is created for convenience, to autoload the module if necessary
-  # this is no longer needed when util-linux-2.21 is released as /dev/loop-control
-  # will be used instead. Support for this will go away in a future version of udev
-  install -d -m755 ${pkgdir}/lib/udev/devices/
-  mknod ${pkgdir}/lib/udev/devices/loop0 b 7 0
-  chgrp disk ${pkgdir}/lib/udev/devices/loop0
- 
   # udevd moved, symlink to make life easy for restarting udevd manually
   ln -s /lib/udev/udevd ${pkgdir}/usr/bin/udevd
 

Modified: udev.install
===================================================================
--- udev.install	2012-02-25 23:56:14 UTC (rev 151385)
+++ udev.install	2012-02-26 00:30:23 UTC (rev 151386)
@@ -2,7 +2,7 @@
 # arg 2:  the old package version
 
 post_upgrade() {
-  if [ "$(vercmp $2 181)" -lt 0 ]; then
+  if [ "$(vercmp $2 182)" -lt 0 ]; then
     echo "udev changes:"
     if [ "$(vercmp $2 168)" -lt 0 ]; then
       echo " * Kernel 2.6.32 or newer is now required."
@@ -48,8 +48,12 @@
       echo " * devtmpfs support is now a hard requirement. Users of the official Arch"
       echo "   kernels have this enabled."
     fi
-    echo " * udev-compat has been removed, and should be uninstalled."
-    echo " * Framebuffers are no longer blacklisted by default."
-    echo " * binaries moved from /sbin to /usr/bin"
+    if [ "$(vercmp $2 181)" -lt 0 ]; then
+      echo " * udev-compat has been removed, and should be uninstalled."
+      echo " * Framebuffers are no longer blacklisted by default."
+      echo " * binaries moved from /sbin to /usr/bin"
+    fi
+    echo " * if your kernel does not provide /dev/loop-control, you need to manually"
+    echo "   load the 'loop' module before using losetup"
   fi
 }




More information about the arch-commits mailing list