|
|
ab3a3d |
autofs-5.0.7 - Handle new location of systemd
|
|
|
ab3a3d |
|
|
|
ab3a3d |
From: Frederic Crozat <fcrozat@suse.com>
|
|
|
ab3a3d |
|
|
|
ab3a3d |
Some distributions are moving systemd unit files from /lib to
|
|
|
ab3a3d |
/usr/lib, so we need to test both directories.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
edit: imk
|
|
|
ab3a3d |
It occurs to me I've forgotten to check for the 64 bit variants
|
|
|
ab3a3d |
of the directories, so add them as well.
|
|
|
ab3a3d |
end edit: imk
|
|
|
ab3a3d |
---
|
|
|
ab3a3d |
|
|
|
ab3a3d |
CHANGELOG | 1 +
|
|
|
ab3a3d |
aclocal.m4 | 2 +-
|
|
|
ab3a3d |
configure | 2 +-
|
|
|
ab3a3d |
3 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
ab3a3d |
|
|
|
ab3a3d |
|
|
|
ab3a3d |
diff --git a/CHANGELOG b/CHANGELOG
|
|
|
ab3a3d |
index 3bdf8a4..8f6bb3a 100644
|
|
|
ab3a3d |
--- a/CHANGELOG
|
|
|
ab3a3d |
+++ b/CHANGELOG
|
|
|
ab3a3d |
@@ -14,6 +14,7 @@
|
|
|
ab3a3d |
- allow non root user to check status.
|
|
|
ab3a3d |
- fix recursive mount deadlock.
|
|
|
ab3a3d |
- increase file map read buffer size.
|
|
|
ab3a3d |
+- handle new location of systemd.
|
|
|
ab3a3d |
|
|
|
ab3a3d |
25/07/2012 autofs-5.0.7
|
|
|
ab3a3d |
=======================
|
|
|
ab3a3d |
diff --git a/aclocal.m4 b/aclocal.m4
|
|
|
ab3a3d |
index 1798c8b..47bca0c 100644
|
|
|
ab3a3d |
--- a/aclocal.m4
|
|
|
ab3a3d |
+++ b/aclocal.m4
|
|
|
ab3a3d |
@@ -234,7 +234,7 @@ AC_DEFUN([AF_WITH_SYSTEMD],
|
|
|
ab3a3d |
[if test "$withval" = yes; then
|
|
|
ab3a3d |
if test -z "$systemddir"; then
|
|
|
ab3a3d |
AC_MSG_CHECKING([location of the systemd unit files directory])
|
|
|
ab3a3d |
- for systemd_d in /lib/systemd/system; do
|
|
|
ab3a3d |
+ for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
|
|
|
ab3a3d |
if test -z "$systemddir"; then
|
|
|
ab3a3d |
if test -d "$systemd_d"; then
|
|
|
ab3a3d |
systemddir="$systemd_d"
|
|
|
ab3a3d |
diff --git a/configure b/configure
|
|
|
ab3a3d |
index ba3bba6..3722a46 100755
|
|
|
ab3a3d |
--- a/configure
|
|
|
ab3a3d |
+++ b/configure
|
|
|
ab3a3d |
@@ -2157,7 +2157,7 @@ if test "${with_systemd+set}" = set; then :
|
|
|
ab3a3d |
if test -z "$systemddir"; then
|
|
|
ab3a3d |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the systemd unit files directory" >&5
|
|
|
ab3a3d |
$as_echo_n "checking location of the systemd unit files directory... " >&6; }
|
|
|
ab3a3d |
- for systemd_d in /lib/systemd/system; do
|
|
|
ab3a3d |
+ for systemd_d in /usr/lib/systemd/system /usr/lib64/systemd/system /lib/systemd/system /lib64/systemd/system; do
|
|
|
ab3a3d |
if test -z "$systemddir"; then
|
|
|
ab3a3d |
if test -d "$systemd_d"; then
|
|
|
ab3a3d |
systemddir="$systemd_d"
|