Re: [PATCH 1/2] Don't populate flags.cmdline with "True" values when no = is used.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-08-12 at 15:24 -0700, Jesse Keating wrote:
> This breaks at least 'debug' as a boot time option.  The flags dict is
> setting {'debug': None} and so later in gui.py or others tests for
> "flags.debug" are coming out as false.  I haven't finished checking all
> of the other flags that we stuff in to the flags dict, and that are not
> foo=bar flags, but there is potential for more breakage here.
> 
> What were you trying to fix here?

This only seems to break debug, autostep, and autoscreenshot.  I've been
looking for a way to fix it but I'm running into troubles.

I could in flags.py forcefully set these to "True".  There is already a
call to set the debug value.  However this seems to go against the
spirit of the patch that broke things in the first place.

I could change every call of "if flags.debug" to "if
flags.cmdline.has_key('debug')", however that would break cases where
anaconda was called manually with a --debug flag.

I could change every call of "if flags.debug" to "if flags.debug or
flags.cmdline.has_key('debug')" but that just seems silly.

Since we have to handle both the case where something was picked up
from /proc/cmdline, or something was picked up as an anaconda --foo
option, we should set up the flags attribute the same both ways, which
looks to me as "True".

-- 
Jesse Keating
Fedora -- Freedom² is a feature!
identi.ca: http://identi.ca/jkeating

Attachment: signature.asc
Description: This is a digitally signed message part

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux