Skip to content

Instantly share code, notes, and snippets.

@luismartingil
Created December 9, 2020 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luismartingil/ee73256214b270bf63296885a1a9690c to your computer and use it in GitHub Desktop.
Save luismartingil/ee73256214b270bf63296885a1a9690c to your computer and use it in GitHub Desktop.
Vagrant NFS bug
==> tester20: Installing NFS client...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
if command -v dnf; then
if `dnf info -q libnfs-utils > /dev/null 2>&1` ; then
dnf -y install nfs-utils libnfs-utils portmap
else
dnf -y install nfs-utils nfs-utils-lib portmap
fi
else
yum -y install nfs-utils nfs-utils-lib portmap
fi
if test $(ps -o comm= 1) == 'systemd'; then
/bin/systemctl restart rpcbind nfs-server
else
/etc/init.d/rpcbind restart
/etc/init.d/nfs restart
fi
Stdout from the command:
/bin/dnf
Last metadata expiration check: 0:00:01 ago on Wed 09 Dec 2020 10:13:51 AM CET.
No match for argument: nfs-utils-lib
Stderr from the command:
Error: Unable to find a match: nfs-utils-lib
Failed to restart rpcbind.service: Unit rpcbind.service not found.
Failed to restart nfs-server.service: Unit nfs-server.service not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment