From 0c283e5b507b1a0bc2b0735df16d3011ca9a839d Mon Sep 17 00:00:00 2001 From: sophia Date: Wed, 23 Sep 2020 11:27:30 -0500 Subject: [PATCH] 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) ``` --- plugins/guests/arch/cap/smb.rb | 2 +- test/unit/plugins/guests/arch/cap/smb_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/guests/arch/cap/smb.rb b/plugins/guests/arch/cap/smb.rb index 88c65acd6..9283a8616 100644 --- a/plugins/guests/arch/cap/smb.rb +++ b/plugins/guests/arch/cap/smb.rb @@ -7,7 +7,7 @@ module VagrantPlugins if !comm.test("test -f /usr/bin/mount.cifs") comm.sudo <<-EOH.gsub(/^ {14}/, '') pacman -Sy --noconfirm - pacman -S --noconfirm cifs-utils + pacman -S --noconfirm smbclient cifs-utils EOH end end diff --git a/test/unit/plugins/guests/arch/cap/smb_test.rb b/test/unit/plugins/guests/arch/cap/smb_test.rb index bd817d21d..4366748f9 100644 --- a/test/unit/plugins/guests/arch/cap/smb_test.rb +++ b/test/unit/plugins/guests/arch/cap/smb_test.rb @@ -25,7 +25,7 @@ describe "VagrantPlugins::GuestArch::Cap::SMB" do described_class.smb_install(machine) expect(comm.received_commands[1]).to match(/pacman -Sy --noconfirm/) - expect(comm.received_commands[1]).to match(/pacman -S --noconfirm cifs-utils/) + expect(comm.received_commands[1]).to match(/pacman -S --noconfirm smbclient cifs-utils/) end it "does not install smb when /usr/bin/mount.cifs exists" do