Why can't initial-setup parse kickstart file post installation and fails with error "option --size invalid integer value 7041.09375"?

Solution Verified - Updated -

Issue

  • After kickstart installation of Red Hat Enterprise Linux 7.2, initial-setup can't parse the kickstart file and fails with the messages as follows.
Oct  4 06:35:05 localhost initial-setup: parsing input kickstart /root/anaconda-ks.cfg
Oct  4 06:35:05 localhost initial-setup: kickstart parsing failed: The following problem occurred on line 32 of the kickstart file:#012#012option --size: invalid integer value: '7041.09375'#012Traceback (most recent call last):#012  File "/usr/lib/python2.7/site-packages/initial_setup/__main__.py", line 104, in <module>#012    parser.readKickstart(kickstart_path)#012  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 747, in readKickstart#012    self.readKickstartFromString(s, reset=False)#012  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 720, in readKickstartFromString#012    self._stateMachine (i)#012  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 703, in _stateMachine#012    self._tryFunc(lambda: self.handleCommand(lineno, args))#012  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 615, in _tryFunc#012    fn()#012  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 703, in <lambda>#012    self._tryFunc(lambda: self.handleCommand(lineno, args))#012  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1943, in handleCommand#012    return KickstartParser.handleCommand(self, lineno, args)#012  File "/usr/lib/python2.7/site-packages/pykickstart/parser.py", line 505, in handleCommand#012    retval = self.handler.dispatcher(args, lineno)#012  File "/usr/lib/python2.7/site-packages/pykickstart/base.py", line 427, in dispatcher#012    obj = self.commands[cmd].parse(args[1:])#012  File "/usr/lib/python2.7/site-packages/pykickstart/commands/partition.py", line 500, in parse#012    retval = F20_Partition.parse(self, args)#012  File "/usr/lib/python2.7/site-packages/pykickstart/commands/partition.py", line 474, in parse#012    retval = F18_Partition.parse(self, args)#012  File "/usr/lib/python2.7/site-packages/pykickstart/commands/partition.py", line 453, in parse#012    retval = F14_Partition.parse(self, args)#012  File "/usr/lib/python2.7/site-packages/pykickstart/commands/partition.py", line 311, in parse#012    (opts, extra) = self.op.parse_args(args=args, lineno=self.lineno)#012  File "/usr/lib/python2.7/site-packages/pykickstart/options.py", line 105, in parse_args#012    return OptionParser.parse_args(self, **kwargs)#012  File "/usr/lib64/python2.7/optparse.py", line 1401, in parse_args#012    self.error(str(err))#012  File "/usr/lib/python2.7/site-packages/pykickstart/options.py", line 50, in error#012    raise KickstartParseError(formatErrorMsg(self.lineno, msg=msg))#012KickstartParseError: The following problem occurred on line 32 of the kickstart file:#012#012option --size: invalid integer value: '7041.09375'

Environment

  • Red Hat Enterprise Linux 7.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In