vagrant-vbguest 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7a6d0a4fb842515ecb1dd74ecb969b916c9673aaefabad4f866e84a4fadcdd5
4
- data.tar.gz: c799100151565c5bced4e1efdc1af7e833fb8e01b1ab6ec74ec94d01e7f05676
3
+ metadata.gz: 1fecae71af01b753dc6ad5a6dd65a70dc4e4c39dbdaaeb5205c9bb88542e1efd
4
+ data.tar.gz: dfc9860b431a6bea6371aa5e4f51fcd30c6ec7ff74b96d4d09bbea1327ba1deb
5
5
  SHA512:
6
- metadata.gz: 14ae4c8c9751d61040c7658d487271a2fdcd7f55f734a1487921c15d05cc97f175aafafde2e1787cadd48c05259f4dcfde4aac3e810c0b1723dd228d3e41af8f
7
- data.tar.gz: 5791807d0b50e929402798b41647306c1edb40e434b25c9264c633bb2c76f8c4b02e18012488a5ef136fee0616777c46daaee044fcdaca066241f8d9372f1a06
6
+ metadata.gz: 105dcfe234ee744cee3d5f21797e8bf43fa835c148c6816aff92805a996cf1074afece27b99b5f25e4d41a61e0f4a4cfaaa6c1e99b49f30a901eb6e233a4d0ad
7
+ data.tar.gz: 8f5684c37b0b59bd5d2465ab74d21ccf0169f3756a102e70c5066f5cc62ccb65f06a231b8e6d78a0b1caadec2e85c2990b67d7a78c7f25a4c2b8b631d6acaf46
@@ -1,3 +1,8 @@
1
+ ## 0.27.0 (2020-11-15)
2
+
3
+ - Un-mounting the guest additions iso will now take place in the cleanup step [GH-393]
4
+ - Running detection now checks for vboxguest and vboxsf kernel module. [GH-392], Fixes [GH-387]
5
+
1
6
  ## 0.26.0 (2020-10-30)
2
7
 
3
8
  - Add a new configuration `installer_hooks` allows to configure arbitrary scripts to be run on the guest before/after installer steps are executed.
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ group :development do
9
9
  elsif ENV['VAGRANT_LOCAL']
10
10
  gem 'vagrant', path: ENV['VAGRANT_LOCAL']
11
11
  else
12
- gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git'
12
+ gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git', branch: "main"
13
13
  end
14
14
  gem 'rake', '>= 12.3.3'
15
15
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.26.0
1
+ 0.27.0
@@ -151,7 +151,11 @@ module VagrantVbguest
151
151
  end
152
152
 
153
153
  def cleanup
154
- @guest_installer.cleanup if @guest_installer
154
+ return unless @guest_installer
155
+
156
+ @guest_installer.cleanup do |type, data|
157
+ @env.ui.info(data, :prefix => false, :new_line => false)
158
+ end
155
159
  end
156
160
 
157
161
  def with_hooks(step_name)
@@ -236,12 +236,13 @@ module VagrantVbguest
236
236
 
237
237
  # A helper method to delete the uploaded GuestAdditions iso file
238
238
  # from the guest box
239
- def cleanup
239
+ def cleanup(opts, &block)
240
240
  unless options[:no_cleanup]
241
241
  @host.cleanup
242
- communicate.execute("test -f #{tmp_path} && rm #{tmp_path}", :error_check => false) do |type, data|
243
- env.ui.error(data.chomp, :prefix => false)
244
- end
242
+
243
+ opts = (opts || {}).merge(:error_check => false)
244
+ block ||= proc { |type, data| env.ui.error(data.chomp, :prefix => false) }
245
+ communicate.execute("test -f #{tmp_path} && rm #{tmp_path}", opts, &block)
245
246
  end
246
247
  end
247
248
  end
@@ -67,7 +67,6 @@ module VagrantVbguest
67
67
  mount_iso(opts, &block)
68
68
  execute_installer(opts, &block)
69
69
  start(opts, &block)
70
- unmount_iso(opts, &block) unless options[:no_cleanup]
71
70
  end
72
71
 
73
72
  # @param opts [Hash] Optional options Hash wich meight get passed to {Vagrant::Communication::SSH#execute} and firends
@@ -78,7 +77,7 @@ module VagrantVbguest
78
77
  opts = {
79
78
  :sudo => true
80
79
  }.merge(opts || {})
81
- communicate.test('grep -qE "^vboxguest\s.+\s" /proc/modules && ls /lib/modules/`uname -r`/misc/vboxsf.ko*', opts, &block)
80
+ communicate.test('grep -qE "^vboxguest\b.*vboxsf\b" /proc/modules', opts, &block)
82
81
  end
83
82
 
84
83
  # This overrides {VagrantVbguest::Installers::Base#guest_version}
@@ -269,6 +268,13 @@ module VagrantVbguest
269
268
  env.ui.info(I18n.t("vagrant_vbguest.unmounting_iso", :mount_point => mount_point))
270
269
  communicate.sudo("umount #{mount_point}", opts, &block)
271
270
  end
271
+
272
+ def cleanup(opts=nil, &block)
273
+ unless options[:no_cleanup]
274
+ unmount_iso(opts, &block)
275
+ super
276
+ end
277
+ end
272
278
  end
273
279
  end
274
280
  end
@@ -51,7 +51,6 @@ module VagrantVbguest
51
51
  upload(iso_file)
52
52
  mount_iso(opts, &block)
53
53
  execute_installer(opts, &block)
54
- unmount_iso(opts, &block) unless options[:no_cleanup]
55
54
  end
56
55
 
57
56
  def reboot_after_install?(opts = nil, &block)
@@ -113,6 +112,13 @@ module VagrantVbguest
113
112
  communicate.execute("Remove-Item -Path #{tmp_path}", opts, &block)
114
113
  end
115
114
 
115
+ def cleanup(opts = nil, &block)
116
+ unless options[:no_cleanup]
117
+ unmount_iso(opts, &block)
118
+ super
119
+ end
120
+ end
121
+
116
122
  def yield_installation_error_warning(path_to_installer)
117
123
  @env.ui.warn I18n.t(
118
124
  "vagrant_vbguest.windows.install_error",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vbguest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Schulze
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: micromachine