Skip to content

Commit

Permalink
guest: redhat: pull fuse-sshfs from PowerTools repo on el8
Browse files Browse the repository at this point in the history
It's not in epel-release on el8. See https://bugzilla.redhat.com/show_bug.cgi?id=1758884

Fixes #100
  • Loading branch information
dustymabe committed Mar 15, 2020
1 parent cd31a47 commit ac732ac
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/vagrant-sshfs/cap/guest/redhat/sshfs_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ module GuestRedHat
module Cap
class SSHFSClient
def self.sshfs_install(machine)
# Install epel rpm if not installed
if !epel_installed(machine)
epel_install(machine)
case machine.guest.capability("flavor")
when :rhel_8
# No need to install epel. fuse-sshfs comes from the PowerTools repo
# https://bugzilla.redhat.com/show_bug.cgi?id=1758884
machine.communicate.sudo("yum -y install --enablerepo=PowerTools fuse-sshfs")
when :rhel_7, :rhel # rhel7 and rhel6
# Install fuse-sshfs from epel
if !epel_installed(machine)
epel_install(machine)
end
machine.communicate.sudo("yum -y install fuse-sshfs")
end

# Install sshfs (comes from epel repos)
machine.communicate.sudo("yum -y install fuse-sshfs")
end

def self.sshfs_installed(machine)
Expand Down

0 comments on commit ac732ac

Please sign in to comment.