From: Nicolas Morey-Chaisemartin <NMoreyChaisemartin-l3A5Bk7waGM@public.gmane.org>
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCHv2 rdma-core 1/5] kernel-boot: Add cmake variable to configure the path to systemd-* binaries
Date: Fri, 25 Aug 2017 12:40:02 +0200 [thread overview]
Message-ID: <78ca92c2-8422-e22d-1efa-1077946d2064@suse.de> (raw)
In-Reply-To: <88926674-d707-6f00-e9a1-e2a823fec323-l3A5Bk7waGM@public.gmane.org>
Debian uses /lib/systemd
SUSE uses /usr/lib/systemd
RHEL/Fedora can use both.
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin-IBi9RG/b67k@public.gmane.org>
---
CMakeLists.txt | 2 ++
kernel-boot/rdma-load-modules@.service.in | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2324cf49..a2464ec5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,6 +74,8 @@ set(CMAKE_INSTALL_INITDDIR "${CMAKE_INSTALL_SYSCONFDIR}/init.d"
CACHE PATH "Location for init.d files")
set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system"
CACHE PATH "Location for systemd service files")
+set(CMAKE_INSTALL_SYSTEMD_BINDIR "/lib/systemd"
+ CACHE PATH "Location for systemd extra binaries")
set(ACM_PROVIDER_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/ibacm"
CACHE PATH "Location for ibacm provider plugin shared library files.")
diff --git a/kernel-boot/rdma-load-modules@.service.in b/kernel-boot/rdma-load-modules@.service.in
index d381bc5b..c390a8cc 100644
--- a/kernel-boot/rdma-load-modules@.service.in
+++ b/kernel-boot/rdma-load-modules@.service.in
@@ -21,5 +21,5 @@ ConditionCapability=CAP_SYS_MODULE
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/lib/systemd/systemd-modules-load @CMAKE_INSTALL_FULL_SYSCONFDIR@/rdma/modules/%I.conf
+ExecStart=@CMAKE_INSTALL_SYSTEMD_BINDIR@/systemd-modules-load @CMAKE_INSTALL_FULL_SYSCONFDIR@/rdma/modules/%I.conf
TimeoutSec=90s
--
2.14.1.252.gf15771ee3
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-08-25 10:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-25 10:39 [PATCHv2 rdma-core 0/5] Packaging: fixes and SUSE support Nicolas Morey-Chaisemartin
[not found] ` <88926674-d707-6f00-e9a1-e2a823fec323-l3A5Bk7waGM@public.gmane.org>
2017-08-25 10:40 ` Nicolas Morey-Chaisemartin [this message]
2017-08-25 10:40 ` [PATCHv2 rdma-core 2/5] Documentation: install udev.md Nicolas Morey-Chaisemartin
2017-08-25 10:40 ` [PATCHv2 rdma-core 3/5] redhat: fix typo in librdacm package description Nicolas Morey-Chaisemartin
2017-08-25 10:40 ` [PATCHv2 rdma-core 4/5] suse: Add spec file for SUSE Nicolas Morey-Chaisemartin
2017-08-25 10:40 ` [PATCHv2 rdma-core 5/5] cbuild: use SUSE spec file for SUSE targets Nicolas Morey-Chaisemartin
[not found] ` <6173036c-1120-3afa-274d-8b41ce821da2-l3A5Bk7waGM@public.gmane.org>
2017-08-25 15:16 ` Jason Gunthorpe
[not found] ` <20170825151651.GB1027-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-08-25 15:29 ` [PATCHv2 rdma-core 6/6] rdma-core.spec: remove top spec file Nicolas Morey-Chaisemartin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=78ca92c2-8422-e22d-1efa-1077946d2064@suse.de \
--to=nmoreychaisemartin-l3a5bk7wagm@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox