Josef Stribny d64015b
From ccc4162ee8ca16ce560b1efdc90cafa67cbc1415 Mon Sep 17 00:00:00 2001
Josef Stribny d64015b
From: Dan Williams <dcbw@redhat.com>
Josef Stribny d64015b
Date: Tue, 12 May 2015 15:43:18 -0500
Josef Stribny d64015b
Subject: [PATCH] fedora: don't try to use biosdevname if it's not installed
Josef Stribny d64015b
Josef Stribny d64015b
If biosdevname isn't installed it doesn't make sense to try using it
Josef Stribny d64015b
for persistent device names.  Just treat lack of biosdevname as
Josef Stribny d64015b
virtual networking.
Josef Stribny d64015b
---
Josef Stribny d64015b
 plugins/guests/fedora/cap/configure_networks.rb | 2 +-
Josef Stribny d64015b
 1 file changed, 1 insertion(+), 1 deletion(-)
Josef Stribny d64015b
Josef Stribny d64015b
diff --git a/plugins/guests/fedora/cap/configure_networks.rb b/plugins/guests/fedora/cap/configure_networks.rb
Josef Stribny d64015b
index 2f67099..8e071b5 100644
Josef Stribny d64015b
--- a/plugins/guests/fedora/cap/configure_networks.rb
Josef Stribny d64015b
+++ b/plugins/guests/fedora/cap/configure_networks.rb
Josef Stribny d64015b
@@ -17,7 +17,7 @@ def self.configure_networks(machine, networks)
Josef Stribny d64015b
           virtual = false
Josef Stribny d64015b
           interface_names = Array.new
Josef Stribny d64015b
           machine.communicate.sudo("/usr/sbin/biosdevname; echo $?") do |_, result|
Josef Stribny d64015b
-            virtual = true if result.chomp == '4'
Josef Stribny d64015b
+            virtual = true if ['4', '127'].include? result.chomp
Josef Stribny d64015b
           end
Josef Stribny d64015b
 
Josef Stribny d64015b
           if virtual
Josef Stribny d64015b