master - configure: make configure --enable-udev-systemd-background-jobs only for systemd >= 205
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=74ed1ba9f99aaf16906d53c28ad604eaa7a21419 Commit: 74ed1ba9f99aaf16906d53c28ad604eaa7a21419 Parent: 422d1ac8d244e1d7c5e122c54efe0ad67ce98d04 Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Nov 19 13:47:09 2014 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Nov 19 13:47:18 2014 +0100
configure: make configure --enable-udev-systemd-background-jobs only for systemd >= 205
systemd-run is available in systemd>=205. Also, this fix prevents systemd-specific udev rules in 69-dm-lvm-metad.rules to appear in case systemd environment is not available - make configure to check this automatically and use these systemd specific rules only if it is applicable.
--- WHATS_NEW | 1 + aclocal.m4 | 2 +- configure | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- configure.in | 15 +++++++++- 4 files changed, 108 insertions(+), 3 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.113 - ===================================== + Default to configure --enable-udev-systemd-background-jobs for systemd>=205. Fix ignore_vg() to properly react on various vg_read errors (2.02.112). Failed recovery returns FAILED_RECOVERY status flag for vg_read(). Exit with non-zero status code when pvck encounters a problem.
aclocal.m4 +1 -1
@@ -1,4 +1,4 @@ -# generated automatically by aclocal 1.14.1 -*- Autoconf -*- +# generated automatically by aclocal 1.13.4 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc.
configure +92 -1
122 lines not on this page · raw message
configure.in +14 -1
@@ -1092,13 +1092,26 @@ fi ################################################################################ dnl -- Enable udev-systemd protocol to instantiate a service for background jobs +dnl -- Requires systemd version 205 at least (including support for systemd-run) AC_MSG_CHECKING(whether to use udev-systemd protocol for jobs in background) AC_ARG_ENABLE(udev-systemd-background-jobs, AC_HELP_STRING([--disable-udev-systemd-background-jobs], [disable udev-systemd protocol to instantiate a service for background job]), - UDEV_SYSTEMD_BACKGROUND_JOBS=$enableval, UDEV_SYSTEMD_BACKGROUND_JOBS=yes) + UDEV_SYSTEMD_BACKGROUND_JOBS=$enableval, + UDEV_SYSTEMD_BACKGROUND_JOBS=maybe) AC_MSG_RESULT($UDEV_SYSTEMD_BACKGROUND_JOBS) +if test "$UDEV_SYSTEMD_BACKGROUND_JOBS" != no; then + pkg_config_init + PKG_CHECK_MODULES(SYSTEMD, systemd >= 205, + [test "UDEV_SYSTEMD_BACKGROUND_JOBS" = maybe && UDEV_SYSTEMD_BACKGROUND_JOBS=yes], + [if test "$UDEV_SYSTEMD_BACKGROUND_JOBS" = maybe; then + UDEV_SYSTEMD_BACKGROUND_JOBS=no + else + AC_MSG_ERROR([bailing out... systemd >= 205 is required]) + fi]) +fi + ################################################################################ dnl -- Enable udev synchronisation AC_MSG_CHECKING(whether to enable synchronisation with udev processing)