diff options
author | Chris Lumens <clumens@redhat.com> | 2009-05-21 12:38:53 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-05-22 13:11:39 -0400 |
commit | c2af78bb8f185fb12fb4f6368a10f8c2539e4f4b (patch) | |
tree | 72b82ef578dfd6077442d186c0ba8b4727187a48 | |
parent | 14e7a456f546b3df2dd67d803436114b517e73ec (diff) | |
download | anaconda-c2af78bb8f185fb12fb4f6368a10f8c2539e4f4b.tar.gz anaconda-c2af78bb8f185fb12fb4f6368a10f8c2539e4f4b.tar.xz anaconda-c2af78bb8f185fb12fb4f6368a10f8c2539e4f4b.zip |
If network --device=MAC is given, translate to device name (#185522).
-rw-r--r-- | loader/net.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/loader/net.c b/loader/net.c index bebabcd32..553192389 100644 --- a/loader/net.c +++ b/loader/net.c @@ -1568,7 +1568,12 @@ void setKickstartNetwork(struct loaderData_s * loaderData, int argc, if (!noksdev) { if (device) { - loaderData->netDev = strdup(device); + /* If --device=MAC was given, translate into a device name now. */ + if (index(device, ':') != NULL) + loaderData->netDev = iface_mac2device(device); + else + loaderData->netDev = strdup(device); + loaderData->netDev_set = 1; } |