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")
|
||||
if output =~ /vboxdrv kernel module is not loaded/
|
||||
raise Errors::VirtualBoxKernelModuleNotLoaded
|
||||
elsif output =~ /Please install/
|
||||
# Check for installation incomplete warnings, for example:
|
||||
# "WARNING: The character device /dev/vboxdrv does not
|
||||
# exist. Please install the virtualbox-ose-dkms package and
|
||||
# the appropriate headers, most likely linux-headers-generic."
|
||||
elsif output =~ /Please install/
|
||||
raise Errors::VirtualBoxInstallIncomplete
|
||||
end
|
||||
|
||||
|
|
|
@ -389,7 +389,7 @@ module Vagrant
|
|||
end
|
||||
|
||||
class VirtualBoxInstallIncomplete < VagrantError
|
||||
status_code(79)
|
||||
status_code(80)
|
||||
error_key(:virtualbox_install_incomplete)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue