dustymabe / vagrant-sshfs

SSHFS synced folder implementation for Vagrant.
GNU General Public License v2.0
225 stars 33 forks source link

Install fails on alpine #93

Closed rumpelsepp closed 4 years ago

rumpelsepp commented 6 years ago

I am using a alpine linux guest and this plugin fails with:

==> default: Installing SSHFS client...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

yum -y install fuse-sshfs

Stdout from the command:

Stderr from the command:

bash: line 4: yum: command not found

Please consider a switch not to install this plugin automatically, I do this in my provision script anyway. On alpine one would install sshfs with apk add sshfs.

dustymabe commented 6 years ago

what's the alpine linux vagrant box you are using? preferably one from atlas/vagrantcloud

rumpelsepp commented 6 years ago

I tried these:

https://app.vagrantup.com/generic/boxes/alpine36 https://app.vagrantup.com/generic/boxes/alpine37

dustymabe commented 6 years ago

hey @rumpelsepp - the way vagrant-sshfs detects a guest type is by re-using the guest detections that are defined in the files under: https://github.com/hashicorp/vagrant/tree/master/plugins/guests . vagrant-sshfs can't support alpine until it is added there.

timschumi commented 5 years ago

I created a pull request to add alpine support (#105).

While upstream vagrant doesn't support the "alpine" guest type yet, it is provided by the vagrant-alpine plugin until it's ready to be upstreamed.

@rumpelsepp The specific issue with sshfs trying to install through yum is due to the guest type being hardcoded to alt (a RedHat derviate) as a workaround on robox alpine boxes. If you have the vagrant-alpine plugin installed, add config.vm.guest = :alpine to your Vagrantfile to set it to the correct guest type. In conjunction with the PR I linked earlier, that should allow SSHFS to be installed automatically in the future.

dustymabe commented 4 years ago

this was fixed in #105