sophia 0c283e5b50 Install smbclient when setting up arch smb
Leaving out smbclient from the install will cause a cyclical
dependency error.

```
Was getting error
Stderr from the command:

warning: dependency cycle detected:
warning: smbclient will be installed before its cifs-utils dependency
error: failed to commit transaction (conflicting files)
```
2020-09-23 11:59:42 -05:00

18 lines
414 B
Ruby

module VagrantPlugins
module GuestArch
module Cap
class SMB
def self.smb_install(machine)
comm = machine.communicate
if !comm.test("test -f /usr/bin/mount.cifs")
comm.sudo <<-EOH.gsub(/^ {14}/, '')
pacman -Sy --noconfirm
pacman -S --noconfirm smbclient cifs-utils
EOH
end
end
end
end
end
end