[PATCH 10/10] dracut: fix invalid use of 'eth0'
Will Woods
wwoods at redhat.com
Fri Aug 17 22:30:47 UTC 2012
You can't use 'eth0' with ifname=<name>:<MAC>. Use 'ksdev0' instead.
---
dracut/parse-anaconda-net.sh | 4 ++--
dracut/parse-kickstart | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dracut/parse-anaconda-net.sh b/dracut/parse-anaconda-net.sh
index 87dd775..683a009 100755
--- a/dracut/parse-anaconda-net.sh
+++ b/dracut/parse-anaconda-net.sh
@@ -22,8 +22,8 @@ if [ -n "$ksdev_val" ]; then
warn "'ksdevice=bootif' does nothing (BOOTIF is used by default if present)"
;;
??:??:??:??:??:??)
- warn "'ksdevice=<MAC>' is deprecated. Using 'ifname=eth0:<MAC>' instead."
- ksdevice="eth0"
+ warn "'ksdevice=<MAC>' is deprecated. Using 'ifname=ksdev0:<MAC>' instead."
+ ksdevice="ksdev0"
echo "ifname=$ksdevice:$ksdev_val" > $net_conf
;;
*) ksdevice="$ksdev_val" ;;
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index d792ac6..63e12af 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -214,7 +214,7 @@ def ksnet_to_dracut(args, lineno, net, bootdev=False):
mac = net.device
net.device = find_devname(mac)
if net.device is None: # iface not active - pick a name for it
- net.device = "eth0" # we only get called once, so this is OK
+ net.device = "ksdev0" # we only get called once, so this is OK
line.append("ifname=%s:%s" % (net.device, mac.lower()))
# NOTE: dracut currently only does ipv4 *or* ipv6, so only one ip=arg..
--
1.7.11.2
More information about the anaconda-patches
mailing list