Whamcloud - gitweb
LU-18784 dkms: add systemd check for dkms-debs 41/58341/3
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sat, 8 Mar 2025 01:44:51 +0000 (08:44 +0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 19 Mar 2025 23:34:26 +0000 (23:34 +0000)
The lustre-client-utils packaging of:
  /usr/lib/systemd/system/lnet.service
is conditional upon the presence of systemd.

Include the check when building the dkms-debs target.

Test-Parameters: trivial testgroup=full-dkms
HPE-bug-id: LUS-12776
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I583338cda8fd49cbb845ed71bb2cb34a1db3cc74
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/58341
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Caleb Carlson <caleb.carlson@hpe.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
autoMakefile.am

index 687a017..ba77162 100644 (file)
@@ -589,6 +589,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}"; \