diff options
author | James Davidson <james.davidson@vyatta.com> | 2013-02-06 14:48:21 -0800 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2013-02-06 15:10:40 -0800 |
commit | dc53d09decae1cd8098ee92c7c1dab72dc80ae50 (patch) | |
tree | 98cfd9ce1652fb141963705a4cb073eea0dcef2d | |
parent | 449b6c06705d5c00180206979e408d7c5230a092 (diff) | |
download | vyatta-cfg-system-dc53d09decae1cd8098ee92c7c1dab72dc80ae50.tar.gz vyatta-cfg-system-dc53d09decae1cd8098ee92c7c1dab72dc80ae50.zip |
Skip biosdevname if running in Xen
Bug 8676
biosdevname does not behave well on Xen so simply skip it when running
in Xen.
-rwxr-xr-x | scripts/vyatta_net_name | 3 |
1 files changed, 3 insertions, 0 deletions
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. |