fedora: don't try to use biosdevname if it's not installed

If biosdevname isn't installed it doesn't make sense to try using it
for persistent device names.  Just treat lack of biosdevname as
virtual networking.
This commit is contained in:
Dan Williams 2015-05-12 15:43:18 -05:00
parent b421af58e8
commit ccc4162ee8
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module VagrantPlugins
virtual = false
interface_names = Array.new
machine.communicate.sudo("/usr/sbin/biosdevname; echo $?") do |_, result|
virtual = true if result.chomp == '4'
virtual = true if ['4', '127'].include? result.chomp
end
if virtual