summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-10 19:59:58 +0000
committerMatt Wilson <msw@redhat.com>2001-01-10 19:59:58 +0000
commit230e362516f6f808be22d5e9159e095871686e07 (patch)
tree3ca8a06bd43ed901ad8a612c09460ae8b54b049c /anaconda
parentf322110b8edd42c5d9367c8328d49ad8f1f892d4 (diff)
downloadanaconda-230e362516f6f808be22d5e9159e095871686e07.tar.gz
anaconda-230e362516f6f808be22d5e9159e095871686e07.tar.xz
anaconda-230e362516f6f808be22d5e9159e095871686e07.zip
change to vt1 on gui startup failure
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda6
1 files changed, 6 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index 6d209c07e..25619e625 100755
--- a/anaconda
+++ b/anaconda
@@ -275,7 +275,9 @@ else:
#
# startup X server is we're not already running under an X session
#
+startXServer = 0
if (display_mode == 'g' and not os.environ.has_key('DISPLAY')):
+ startXServer = 1
import xserver
try:
if (reconfigOnly == 0):
@@ -305,6 +307,10 @@ if (display_mode == 'g'):
try:
from gui import InstallInterface
except:
+ # if we're not going to really go into GUI mode, we need to get back
+ # to vc1 where the text install is going to pop up.
+ if startXServer:
+ isys.vtActivate (1)
print "GUI installer startup failed, falling back to text mode."
display_mode = 't'
from text import InstallInterface