From 532865b09fea4b72bde3ccd4bfbc134b70d8a6f2 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Fri, 31 Oct 2008 16:19:48 -1000 Subject: Make sure we look up the IP address for the correct device (#469439) The VNC launch code in vnc.py needed an update to work better with NetworkManager. When collecting the hostname and IP address, it was assuming the first device in the netdevices list is our active NIC, which may or may not be true. Added getActiveNetDevs() in network.py to ask NetworkManager for a list of all currently configured interfaces. Return a list of device names. A list seems a bit pointless, but I'd like to have this in place now for future improvements where we might need to handle more than one active NIC during installation. After all, NM can do that. The message reported by anaconda once VNC is ready will contain the FQDN:DISPLAY_NUMBER (IP ADDRESS), if it can. If it can't find your IP address, it leaves that out. If it can't find your hostname, it also leaves that out. --- anaconda | 1 + 1 file changed, 1 insertion(+) (limited to 'anaconda') diff --git a/anaconda b/anaconda index b8ae35949..2731c43b9 100755 --- a/anaconda +++ b/anaconda @@ -621,6 +621,7 @@ if __name__ == "__main__": graphical_failed = 0 instClass = None # the install class to use vncS = vnc.VncServer() # The vnc Server object. + vncS.anaconda = anaconda xserver_pid = None (opts, args) = parseOptions() -- cgit