Whamcloud - gitweb
LU-18533 build: fix the common.postinst nonexistence issue 92/57392/2
authorJian Yu <yujian@whamcloud.com>
Thu, 12 Dec 2024 07:51:30 +0000 (23:51 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:52:58 +0000 (20:52 +0000)
commita2b5118f2a6fa17aaeb3ec0554b6ea8a3ad62ddd
tree40f4bd8f2568c1ff0317b4dcd642073dc1b5469e
parent980c39fbb3f15eb63848f850268374f51f07cbd3
LU-18533 build: fix the common.postinst nonexistence issue

Since dkms v3.1.3, the common.postinst script was not installed
anymore with the install-redhat target, which caused the following
failure while installing lustre-client-dkms package:

  WARNING: /usr/lib/dkms/common.postinst does not exist.
  ERROR: DKMS version is too old and lustre-client was not
  built with legacy DKMS support.
  You must either rebuild lustre-client with legacy postinst
  support or upgrade DKMS to a more current version.

This patch fixes the above issue by using dkms add, build,
and install commands directly instead of the common.postinst script.

Test-Parameters: trivial
Test-Parameters: optional testgroup=full-dkms

Change-Id: If8a61e33d1ef37388e6de7836c00c3e425c2bdc0
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57392
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre-dkms.spec.in