summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-10 18:31:18 +0000
committerMatt Wilson <msw@redhat.com>2000-08-10 18:31:18 +0000
commit1fcb4b241b7c070dd062545d7a4a956afeae6eeb (patch)
treec942167ad9d400ab4ae71e73ecfa421d461b8c56 /anaconda
parent7a88fa4caec3dda444d3ddc359fb1d4726c8abe8 (diff)
downloadanaconda-1fcb4b241b7c070dd062545d7a4a956afeae6eeb.tar.gz
anaconda-1fcb4b241b7c070dd062545d7a4a956afeae6eeb.tar.xz
anaconda-1fcb4b241b7c070dd062545d7a4a956afeae6eeb.zip
1) add a --nofallback option to anaconda such that we can see the
traceback for syntax errors in GUI mode 2) don't over remember custom x modes (#12176) 3) german boot disk messages
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda17
1 files changed, 12 insertions, 5 deletions
diff --git a/anaconda b/anaconda
index bb0ee7e39..7a7533af4 100755
--- a/anaconda
+++ b/anaconda
@@ -44,7 +44,7 @@ setverPath = None
try:
(args, extra) = isys.getopt(sys.argv[1:], 'GTRxtdr:fm:',
- [ 'gui', 'text', 'reconfig', 'xmode', 'test', 'debug',
+ [ 'gui', 'text', 'reconfig', 'xmode', 'test', 'debug', 'nofallback',
'method=', 'rootpath=',
'testpath=', 'mountfs', 'traceonly', 'kickstart=',
'lang=', 'keymap=', 'kbdtype=', 'module=', 'class=',
@@ -86,6 +86,7 @@ if iutil.getArch() == 'ia64':
# forceMount - ? used ?
# localInstall - install to chroot
# reconfigOnly - allow user to reconfig installed box w/o reinstall
+# nofallback - don't fall back to text mode on gui startup failure
test = 0
xmode = 0
debug = 0
@@ -95,6 +96,7 @@ traceOnly = 0
forceMount = 0
localInstall = 0
reconfigOnly = 0
+nofallback = 0
#
# x - xserver info (?)
@@ -133,6 +135,8 @@ for n in args:
xmode = 1
elif (str == '-t' or str == '--test'):
test = 1
+ elif (str == '--nofallback'):
+ nofallback = 1
elif (str == '--module'):
(path, subdir, name) = string.split(arg, ":")
extraModules.append((path, subdir, name))
@@ -276,11 +280,14 @@ if (display_mode == 'g'):
os.symlink ("../mnt/runtime/etc/" + i, "/etc/" + i)
except:
pass
- try:
+ if nofallback:
from gui import InstallInterface
- except:
- print "GUI installer startup failed, falling back to text mode."
- from text import InstallInterface
+ else:
+ try:
+ from gui import InstallInterface
+ except:
+ print "GUI installer startup failed, falling back to text mode."
+ from text import InstallInterface
elif (display_mode == 't'):
from text import InstallInterface
else: