Whamcloud - gitweb
LU-11176 systemd: use univeral path for modprobe 70/32970/2
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 6 Aug 2018 20:00:58 +0000 (16:00 -0400)
committerJohn L. Hammond <jhammond@whamcloud.com>
Mon, 13 Aug 2018 19:53:24 +0000 (19:53 +0000)
The program modprobe is not the same on all platforms. On RHEL
systems it is located in /usr/sbin. For Ubuntu/Debian which is
busybox based /sbin/modprobe is a symlink to /bin/kmod. On all
platforms to keep some sort of standard a symlink for modprobe
exist in /sbin. Update the lnet.service script to use the hard
patch /sbin/modprobe

Test-Parameters: trivial

Lustre-change: https://review.whamcloud.com/32520
Lustre-commit: 574e63fc86553510d87d02cd6d72785f341e48dc

Change-Id: I54342971a6ee1aa4ce86a9fae0ac4dcb167b1510
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/32944
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/32970
Reviewed-by: Thomas Stibor <t.stibor@gsi.de>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/scripts/systemd/lnet.service.in

index 29aa151..4343050 100644 (file)
@@ -9,7 +9,7 @@ ConditionPathExists=!/proc/sys/lnet/
 [Service]
 Type=oneshot
 RemainAfterExit=true
-ExecStart=@sbindir@/modprobe lnet
+ExecStart=/sbin/modprobe lnet
 @BUILD_DLC_FALSE@ExecStart=@sbindir@/lctl network up
 @BUILD_DLC_FALSE@ExecStart=@sbindir@/lustre_routes_config @sysconfdir@/lnet_routes.conf
 @BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl lnet configure