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:14:25 -0800 |
commit | 65c77d40bd43a20974f0d8556b80ec1f9bc7b9e9 (patch) | |
tree | 034fbce8a9c6bf0998dc4af942dec1344fc189a8 /scripts | |
parent | f0a26e1ba6062fa676e34187348cf202311e4b17 (diff) | |
download | vyatta-cfg-system-65c77d40bd43a20974f0d8556b80ec1f9bc7b9e9.tar.gz vyatta-cfg-system-65c77d40bd43a20974f0d8556b80ec1f9bc7b9e9.zip |
Skip biosdevname if running in Xen
Bug 8676
biosdevname does not behave well on Xen so simply skip it when running
in Xen.
(cherry picked from commit dc53d09decae1cd8098ee92c7c1dab72dc80ae50)
Diffstat (limited to 'scripts')
-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. |