This delegates node creation to udev. Among other things, the
important advantage of this approach is population of all the related
stuff in /dev/disk/by-* ; relying on udev can also be controlled
through dmsetup's command line
Comments related to this version:
- another minor patch for static build scenario had to be applied;
hopefully it will be fixed in upstream one day
- example users' file is installed in /etc/udev/rules.d (not active)
- configure is now consistent with lvm2 (they can be trivially merged
into single package now)
make device-mapper
make DESTDIR=$PKG install_device-mapper
+ install -m0644 -D udev/12-dm-permissions.rules $PKG/etc/udev/rules.d/12-dm-permissions.rules.example
+
+ #pkgconfig insists on /lib one or the other way...
+ sed -i '/^libdir=/s|${exec_prefix}|/usr|' $PKG/usr/lib/pkgconfig/devmapper.pc
}
+
+# vim: sts=4 sw=4 ts=8 noet ft=sh:
diff --git a/libdevmapper/lvm2-static_udev_rt.patch b/libdevmapper/lvm2-static_udev_rt.patch
new file mode 100644
index 0000000..b64f8f0
--- /dev/null
+++ b/libdevmapper/lvm2-static_udev_rt.patch
@@ -0,0 +1,24 @@
+diff -ur LVM2.2.02.84.orig/configure LVM2.2.02.84/configure
+--- LVM2.2.02.84.orig/configure 2011-02-17 13:52:46.028748001 +0100
++++ LVM2.2.02.84/configure 2011-02-19 23:40:55.753991226 +0100
+@@ -8799,7 +8799,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
+ $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active " >&6; }
+ if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_activ e" = x""yes; then :
+- UDEV_PC="libudev"; UDEV_LIBS="-ludev"
++ UDEV_PC="libudev"; UDEV_LIBS="-ludev -lrt"
+ else
+ as_fn_error $? "bailing out... libudev library is required" "$LINENO" 5
+ fi
+diff -ur LVM2.2.02.84.orig/configure.in LVM2.2.02.84/configure.in
+--- LVM2.2.02.84.orig/configure.in 2011-02-17 13:52:46.026748001 +0100
++++ LVM2.2.02.84/configure.in 2011-02-19 23:41:42.625996529 +0100
+@@ -804,7 +804,7 @@
+
+ if test x$UDEV_SYNC = xyes; then
+ AC_CHECK_LIB(udev, udev_queue_get_udev_is_active,
+- [UDEV_PC="libudev"; UDEV_LIBS="-ludev"],
++ [UDEV_PC="libudev"; UDEV_LIBS="-ludev -lrt"],
+ [AC_MSG_ERROR([bailing out... libudev library is required])])
+ AC_DEFINE([UDEV_SYNC_SUPPORT], 1, [Define to 1 to enable synchronisation with udev processing.])
+ fi
--
1.7.3.5
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
03-16-2011, 07:42 AM
Juergen Daubert
core/libdevmapper: update to use udev
On Mon, Mar 14, 2011 at 04:55:52PM +0100, Michal Soltys wrote:
> This delegates node creation to udev. Among other things, the
> important advantage of this approach is population of all the related
> stuff in /dev/disk/by-* ; relying on udev can also be controlled
> through dmsetup's command line