Fix up some stuff from previous pull request
This commit is contained in:
parent
db6cd14f9e
commit
1782acdf2e
|
@ -122,11 +122,11 @@ module Vagrant
|
||||||
output = execute("--version")
|
output = execute("--version")
|
||||||
if output =~ /vboxdrv kernel module is not loaded/
|
if output =~ /vboxdrv kernel module is not loaded/
|
||||||
raise Errors::VirtualBoxKernelModuleNotLoaded
|
raise Errors::VirtualBoxKernelModuleNotLoaded
|
||||||
|
elsif output =~ /Please install/
|
||||||
# Check for installation incomplete warnings, for example:
|
# Check for installation incomplete warnings, for example:
|
||||||
# "WARNING: The character device /dev/vboxdrv does not
|
# "WARNING: The character device /dev/vboxdrv does not
|
||||||
# exist. Please install the virtualbox-ose-dkms package and
|
# exist. Please install the virtualbox-ose-dkms package and
|
||||||
# the appropriate headers, most likely linux-headers-generic."
|
# the appropriate headers, most likely linux-headers-generic."
|
||||||
elsif output =~ /Please install/
|
|
||||||
raise Errors::VirtualBoxInstallIncomplete
|
raise Errors::VirtualBoxInstallIncomplete
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -389,7 +389,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
class VirtualBoxInstallIncomplete < VagrantError
|
class VirtualBoxInstallIncomplete < VagrantError
|
||||||
status_code(79)
|
status_code(80)
|
||||||
error_key(:virtualbox_install_incomplete)
|
error_key(:virtualbox_install_incomplete)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue