Bug 224619

Summary: anaconda dies if "langsupport" is in kickstart file
Product: [Fedora] Fedora Reporter: Doug Chapman <dchapman>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-26 18:40:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Doug Chapman 2007-01-26 18:35:02 UTC
Description of problem:
Using an older kickstart file that has a "langsupport" line in it causes
anaconda to die.  It should handle this with a warning.


Traceback (most recent call last):
  File "/usr/bin/anaconda", line 710, in <module>
    vncksdata = setVNCFromKickstart(opts)
  File "/usr/bin/anaconda", line 279, in setVNCFromKickstart
    ksparser.readKickstart(opts.ksfile)
  File "/usr/lib/python2.5/site-packages/pykickstart/parser.py", line 488, in
readKickstart
    self._stateMachine (lambda: fh.readline())
  File "/usr/lib/python2.5/site-packages/pykickstart/parser.py", line 401, in
_stateMachine
    self.handleCommand(lineno, args)
  File "/usr/lib/python2.5/site-packages/pykickstart/parser.py", line 257, in
handleCommand
    self.handler.dispatcher(args[0], args[1:], lineno)
  File "/usr/lib/python2.5/site-packages/pykickstart/commands/base.py", line
247, in dispatcher
    raise KickstartParseError, formatErrorMsg(lineno, msg=_("Unknown command:
%s" % cmd))
pykickstart.errors.KickstartParseError: The following problem occurred on line 6
of the kickstart file:

Unknown command: langsupport

Version-Release number of selected component (if applicable):
rawhide-20070125
anaconda-11.2.0.17-1

How reproducible:
100%

Steps to Reproduce:
1. do a kickstart install that has the following line in the kickstart file:
langsupport --default=en_US.UTF-8 en_US.UTF-8

2.
3.
  
Actual results:
traceback

Expected results:
warning about the langsupport line



Additional info:

Comment 1 Chris Lumens 2007-01-26 18:40:42 UTC
I marked this command as deprecated in FC5, and since it's now two releases and
people have had plenty of time to see the warning, I have removed it.  If you
need to process kickstart files for pre-F7 releases, pykickstart does provide a
mechanism for that.