Scientific Operations

From: Kurt H Maier <khm@pnnl.gov>
Date: Mon, 24 Jun 2019 16:54:35 -0700
Subject: [PATCH] packaging/RedHat/openafs-client.service: add dkms dependency
To: openafs-bugs@openafs.org

Currently, there is no explicit relationship between OpenAFS and dkms.
If dkms needs to rebuild the kernel module, OpenAFS will fail to mount
because modprobe will not load the module. This change specifies that
OpenAFS should run after dkms if dkms is present.
---
 src/packaging/RedHat/openafs-client.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/packaging/RedHat/openafs-client.service
b/src/packaging/RedHat/openafs-client.service
index 09379bea3..f79240c7f 100644
--- a/src/packaging/RedHat/openafs-client.service
+++ b/src/packaging/RedHat/openafs-client.service
@@ -1,7 +1,7 @@
 [Unit]
 Description=OpenAFS Client Service
 Wants=network-online.target
-After=syslog.target network-online.target
+After=syslog.target network-online.target dkms.service
 Before=remote-fs.target

 [Service]
--
2.21.0