summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-10-31 16:19:48 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-11-03 09:25:11 -1000
commit532865b09fea4b72bde3ccd4bfbc134b70d8a6f2 (patch)
treec44ad4b0dbd13d2c6f2773e32b69d8a1cda3acfc /anaconda
parent340ea253abedbd0d2c38834afd327bb120b66609 (diff)
downloadanaconda-532865b09fea4b72bde3ccd4bfbc134b70d8a6f2.tar.gz
anaconda-532865b09fea4b72bde3ccd4bfbc134b70d8a6f2.tar.xz
anaconda-532865b09fea4b72bde3ccd4bfbc134b70d8a6f2.zip
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.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda1
1 files changed, 1 insertions, 0 deletions
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()