FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 03-20-2012, 07:10 PM
Will Woods
 
Default Default to text-mode if 'console=XXX' was provided (#804506)

loader used to set '--text' based on the boot args. But we can parse our
own boot args now, thank you very much.
---
anaconda | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/anaconda b/anaconda
index ad7a73f..4fcc6b8 100755
--- a/anaconda
+++ b/anaconda
@@ -187,7 +187,7 @@ def getAnacondaVersion():
from pyanaconda import _isys
return _isys.getAnacondaVersion()

-def parseOptions(argv = None):
+def parseOptions(argv=None, cmdline=None):
from pyanaconda.anaconda_optparse import AnacondaOptionParser
op = AnacondaOptionParser(version="%prog " + getAnacondaVersion(),
bootarg_prefix="inst.", require_prefix=False)
@@ -264,7 +264,12 @@ def parseOptions(argv = None):
op.add_option("--memcheck", action="store_true", default=True)
op.add_option("--no-memcheck", action="store_false", dest="memcheck")

- (opts, args) = op.parse_args(argv)
+ # some defaults change based on cmdline flags
+ if cmdline is not None:
+ if "console" in cmdline:
+ op.set_defaults(display_mode="t")
+
+ (opts, args) = op.parse_args(argv, cmdline=cmdline)
return (opts, args, op.deprecated_bootargs)

def setupPythonPath():
@@ -597,8 +602,8 @@ if __name__ == "__main__":
setupPythonUpdates()

# do this early so we can set flags before initializing logging
- (opts, args, depr) = parseOptions()
from pyanaconda.flags import flags
+ (opts, args, depr) = parseOptions(cmdline=flags.cmdline)
if opts.images:
flags.imageInstall = True

--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:10 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org