From dc53d09decae1cd8098ee92c7c1dab72dc80ae50 Mon Sep 17 00:00:00 2001 From: James Davidson Date: Wed, 6 Feb 2013 14:48:21 -0800 Subject: Skip biosdevname if running in Xen Bug 8676 biosdevname does not behave well on Xen so simply skip it when running in Xen. --- scripts/vyatta_net_name | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index ade77623..3df23adf 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -85,6 +85,9 @@ sub biosdevname { # biosdevname works only on ethernet devices return $ifname unless ($ifname =~ /^eth/); + # Don't use biosdevname in Xen + return $ifname if ( -d "/proc/xen" ); + # Let the interface name changes ordered by previous invocations of this # script complete before we call biosdevname. If we don't, biosdevame # may generate incorrect name. -- cgit v1.2.3