mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
27 lines
712 B
Ruby
27 lines
712 B
Ruby
# Copyright IBM Corp. 2010, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
module VagrantPlugins
|
|
module HostVoid
|
|
module Cap
|
|
class NFS
|
|
def self.nfs_check_command(env)
|
|
"sudo /usr/bin/sv status nfs-server"
|
|
end
|
|
|
|
def self.nfs_start_command(env)
|
|
<<-EOF
|
|
/usr/bin/ln -s /etc/sv/statd /var/service/ && \
|
|
/usr/bin/ln -s /etc/sv/rpcbind /var/service/ && \
|
|
/usr/bin/ln -s /etc/sv/nfs-server /var/service/
|
|
EOF
|
|
end
|
|
|
|
def self.nfs_installed(env)
|
|
result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query", "nfs-utils")
|
|
result.exit_code == 0
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|