Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
Add systemd support for dkms builds:
$ git diff diff --git a/autoMakefile.am b/autoMakefile.am index 5f572cd971..241b60109c 100644 --- a/autoMakefile.am +++ b/autoMakefile.am @@ -544,6 +544,10 @@ dkms-debs: undef.h debs_common export DEB_BUILD_PROFILES="client"; \ export KERNEL_OBJ="$(LINUX_OBJ)"; \ export KERNEL_SRC="$(LINUX)"; \ + if test "x@systemdsystemunitdir@" != "x"; then \ + export DEB_BUILD_PROFILES="$${DEB_BUILD_PROFILES} systemd"; \ + export SYSTEMD_OPTIONS="--with-systemdsystemunitdir=@systemdsystemunitdir@"; \ + fi; \ echo "Enabled Build Profiles: $${DEB_BUILD_PROFILES}"; \ tmpprofiles=`tr ' ' ',' <<< $$DEB_BUILD_PROFILES`; \ echo "Kernel Source: $${KERNEL_SRC}"; \
Without this the associated lustre-client-utils fails to include lnet.service. With the fix applied:
$ dpkg --contents debs/lustre-client-utils_*.deb | grep lnet.service -rw-r--r-- root/root 412 2025-03-07 17:57 ./usr/lib/systemd/system/lnet.service
Merged for 2.17