Skip to content

Commit

Permalink
Add guest capabilities file for Rocky (based on CentOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenreven committed Jan 5, 2022
1 parent 0f5c864 commit ecb8c03
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/vagrant-sshfs/cap/guest/rocky/sshfs_client.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module VagrantPlugins
module GuestRocky
module Cap
class SSHFSClient
def self.sshfs_install(machine)

case machine.guest.capability("flavor")
when :rocky_8
# No need to install epel. fuse-sshfs comes from the powertools repo
# https://bugzilla.redhat.com/show_bug.cgi?id=1758884
# https://github.com/dustymabe/vagrant-sshfs/issues/123
machine.communicate.sudo("yum -y install --enablerepo=powertools fuse-sshfs")
end
end

def self.sshfs_installed(machine)
machine.communicate.test("rpm -q fuse-sshfs")
end

end
end
end
end

0 comments on commit ecb8c03

Please sign in to comment.