Network Devices Bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, 

   I find this kind of annoying so I think its a bug.  When I kickstart
a computer with one NIC and my kickstart file has a configuration for 2
NICs anaconda will crash.  The simple fix is to check for the device
before configuring it. I have attached a patch to fix this little guy.

Stafford

--- anaconda-9.91.1/installclass.py	2004-03-27 22:41:22.000000000 +0800
+++ anaconda-9.91/installclass.py	2004-03-27 22:43:34.000000000 +0800
@@ -300,20 +300,21 @@
 		    list = devices.keys ()
 		    list.sort()
 		    device = list[0]
-		dev = devices[device]
-                dev.set (("bootproto", bootProto))
-                dev.set (("dhcpclass", dhcpclass))
-		if onboot:
-		    dev.set (("onboot", "yes"))
-		else:
-		    dev.set (("onboot", "no"))
-                if bootProto == "static":
-                    if (ip):
-                        dev.set (("ipaddr", ip))
-                    if (netmask):
-                        dev.set (("netmask", netmask))
-                    if (ethtool):
-                        dev.set (("ethtool_opts", ethtool))
+		if devices.has_key(device):
+                    dev = devices[device]
+                    dev.set (("bootproto", bootProto))
+                    dev.set (("dhcpclass", dhcpclass))
+		    if onboot:
+			dev.set (("onboot", "yes"))
+		    else:
+			dev.set (("onboot", "no"))
+                    if bootProto == "static":
+                	if (ip):
+                    	    dev.set (("ipaddr", ip))
+                	if (netmask):
+                    	    dev.set (("netmask", netmask))
+                	if (ethtool):
+                    	    dev.set (("ethtool_opts", ethtool))
 
     def setLanguageSupport(self, id, langlist):
 	if len (langlist) == 0:

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux