From a71f94c61a9e2b6625aa5282792b5b1b0aba484c Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Fri, 18 Oct 2019 13:56:51 +0200 Subject: [PATCH] guest/redhat: fix nfs client installation CentOS 8+ and Fedora 30+ no longer have the alias "nfs" for "nfs-server" systemd service. This shouldn't break backward compatibility, since "nfs-server" service is available on all supported redhat systems that have systemctl binary. Fixes #10838 --- plugins/guests/redhat/cap/nfs_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/redhat/cap/nfs_client.rb b/plugins/guests/redhat/cap/nfs_client.rb index f28a04346..e707c7e45 100644 --- a/plugins/guests/redhat/cap/nfs_client.rb +++ b/plugins/guests/redhat/cap/nfs_client.rb @@ -15,7 +15,7 @@ module VagrantPlugins fi if test $(ps -o comm= 1) == 'systemd'; then - /bin/systemctl restart rpcbind nfs + /bin/systemctl restart rpcbind nfs-server else /etc/init.d/rpcbind restart /etc/init.d/nfs restart