kickstart problem Partition requires a size specification RHEL6beta

In the process of munging our RHEL5 kickstarts to RHEL6, we started getting this error "Partition requires a size specification", the partition had a size of 0 set in the kickstart, with grow.
part pv.2 --size=0 --grow
reading kickstart.py, it seems that the check for size has gone from pd.size = None to not self.size
if not self.size and not self.onPart: raise KickstartValueError, formatErrorMsg(self.lineno, msg="Partition requires a size specification")
The fix was simple enough then, just change size from 0 to 1.
part pv.2 --size=1 --grow
Wordpress category: 

Comments

Perfect. Exactly what I needed. It appears that the --grow overrides any actual size specification, as in my initial anaconda-ks.cfg, the size was specified as 200, but in my production RHEL5.5 .cfg it was set to 0, causing the error.

Thanks!

Thank you very much !!!
It helped me a lot.

Jo

Hello

part pv.2 --size=0 --grow

Would this option work on rhel4?

Yes I know its an old version of Redhat.

Thanks

It might work, I'm just not sure if RHEL4's kickstart had lvm support, I suspect it did though.

If it doesn't, it should error out pretty early in anaconda.

Just what I was looking for. I love the wild wild web!

Same exact problem. --size=0 from RHEL 5 kickstarts not working on RHEL 6. Many thanks for posting.

warpgeek

Thanks for the post ! It helped !

Same issue installing CentOS 6.4. kickstart file, koan & cobbler
It solved the issue.

Add new comment

Markdown

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Refresh Type the characters you see in this picture. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.