[arch-commits] Commit in lvm2/trunk (PKGBUILD lvm2_hook)

Eric Bélanger eric at archlinux.org
Sun Feb 5 22:08:26 EST 2012


    Date: Sunday, February 5, 2012 @ 22:08:25
  Author: eric
Revision: 149162

upgpkg: lvm2 2.02.90-1

Upstream update, Remove sed usage in initcpio hook (close FS#27307)

Modified:
  lvm2/trunk/PKGBUILD
  lvm2/trunk/lvm2_hook

-----------+
 PKGBUILD  |   13 +++++--------
 lvm2_hook |   12 ++++++------
 2 files changed, 11 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-06 02:15:27 UTC (rev 149161)
+++ PKGBUILD	2012-02-06 03:08:25 UTC (rev 149162)
@@ -4,23 +4,20 @@
 
 pkgbase=lvm2
 pkgname=('lvm2' 'device-mapper')
-pkgver=2.02.88
+pkgver=2.02.90
 pkgrel=1
 arch=('i686' 'x86_64')
 url="http://sourceware.org/lvm2/"
 license=('GPL2' 'LGPL2.1')
 groups=('base')
-source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz
+source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz{,.asc}
         lvm2_install
         lvm2_hook
         11-dm-initramfs.rules)
-md5sums=('321429cd1b1526a29cf6d75018b1e4bb'
-         'dcb82506d732cc7b10159a89b579dba8'
-         '8d613b84a175cd85f752a75198e40e15'
-         '69e40679cd8b3658bfc619e48baae125')
-sha1sums=('05a4fb09cb5e3d680ad1b268c941968853fb1979'
+sha1sums=('de37e533e5f3af6a18c1acadd7a07ae06150d7d6'
+          '61c4b46dff520f9c178062930ea9f169019f57e6'
           '7f108b2f2056eb050fc898bf5190ecf9145aed8a'
-          'a0e0513c2efb183006e57e595d93ce18be297928'
+          '7d63aa838703c9f986531a78164b556f765f5cce'
           'f6a554eea9557c3c236df2943bb6e7e723945c41')
 
 build() {

Modified: lvm2_hook
===================================================================
--- lvm2_hook	2012-02-06 02:15:27 UTC (rev 149161)
+++ lvm2_hook	2012-02-06 03:08:25 UTC (rev 149162)
@@ -4,17 +4,17 @@
     /sbin/modprobe -q dm-mod >/dev/null 2>&1
     if [ -e "/sys/class/misc/device-mapper" ]; then
         if [ ! -e "/dev/mapper/control" ]; then
+            local major minor
+            IFS=: read major minor < /sys/class/misc/device-mapper/dev
             mkdir /dev/mapper
-            mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
+            mknod "/dev/mapper/control" c ${major} ${minor}
         fi
 
         # If the lvmwait= parameter has been specified on the command line
         # wait for the device(s) before trying to activate the volume group(s)
-        if [ -n "${lvmwait}" ]; then
-            for pvdev in $(echo ${lvmwait} | sed 's|,| |g'); do
-                poll_device ${pvdev} ${rootdelay}
-            done
-        fi
+        for pvdev in ${lvmwait//,/ }; do
+            poll_device ${pvdev} ${rootdelay}
+        done
 
         [ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
 



More information about the arch-commits mailing list