Fix up some stuff from previous pull request
This commit is contained in:
parent
db6cd14f9e
commit
1782acdf2e
|
@ -122,12 +122,12 @@ module Vagrant
|
|||
output = execute("--version")
|
||||
if output =~ /vboxdrv kernel module is not loaded/
|
||||
raise Errors::VirtualBoxKernelModuleNotLoaded
|
||||
# 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
|
||||
# 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."
|
||||
raise Errors::VirtualBoxInstallIncomplete
|
||||
end
|
||||
|
||||
parts = output.split("_")
|
||||
|
|
|
@ -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