Created
January 18, 2020 20:37
-
-
Save jabenninghoff/a1680f5a7146370b461bb1c38fa8e14f to your computer and use it in GitHub Desktop.
patch file to implement workaround from https://github.com/oracle/vagrant-boxes/issues/178
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patch file to implement workaround from https://github.com/oracle/vagrant-boxes/issues/178 | |
--- /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta.rb.orig 2019-10-14 12:01:06.000000000 -0500 | |
+++ /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/meta.rb 2020-01-18 14:17:54.000000000 -0600 | |
@@ -64,6 +64,7 @@ | |
"5.1" => Version_5_1, | |
"5.2" => Version_5_2, | |
"6.0" => Version_6_0, | |
+ "6.1" => Version_6_1, | |
} | |
if @@version.start_with?("4.2.14") | |
--- /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/version_6_1.rb.orig 2020-01-18 14:18:10.000000000 -0600 | |
+++ /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/driver/version_6_1.rb 2020-01-18 14:18:52.000000000 -0600 | |
@@ -0,0 +1,16 @@ | |
+require File.expand_path("../version_6_0", __FILE__) | |
+ | |
+module VagrantPlugins | |
+ module ProviderVirtualBox | |
+ module Driver | |
+ # Driver for VirtualBox 6.1.x | |
+ class Version_6_1 < Version_6_0 | |
+ def initialize(uuid) | |
+ super | |
+ | |
+ @logger = Log4r::Logger.new("vagrant::provider::virtualbox_6_1") | |
+ end | |
+ end | |
+ end | |
+ end | |
+end | |
--- /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb.orig 2020-01-18 14:15:41.000000000 -0600 | |
+++ /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/providers/virtualbox/plugin.rb 2020-01-18 14:16:05.000000000 -0600 | |
@@ -59,6 +59,7 @@ | |
autoload :Version_5_1, File.expand_path("../driver/version_5_1", __FILE__) | |
autoload :Version_5_2, File.expand_path("../driver/version_5_2", __FILE__) | |
autoload :Version_6_0, File.expand_path("../driver/version_6_0", __FILE__) | |
+ autoload :Version_6_1, File.expand_path("../driver/version_6_1", __FILE__) | |
end | |
module Model |
Assuming it's OSX.
-
View as raw and download.
-
Apply:
cd / && sudo git apply ~/Downloads/vagrant-226.patch
I recommend: sudo patch -p0 < vagrant-226.patch
which works for MacOS or other systems that use the same vagrant path.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you add how you invoke patch with this file, it would be perfection.