KSVALIDATOR(1)

๐Ÿ“ฆ
version 3.69 ยท 2 versions
, in centos-stream 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

๐Ÿ’– KSVALIDATOR(1) ๐Ÿ’–

okay bestie, gather round โ€” this is the General Commands Manual page for ksvalidator, and I'm about to make it make sense. ๐ŸŽ€


โœจ NAME โœจ

ksvalidator โ€” verify the syntax of a kickstart file ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

ksvalidator [-e | --firsterror]  [-i | --followincludes]  [-l |
--listversions]  [-v | --version VERSION]  INFILE [INFILE...]

yes queen, you can throw multiple INFILEs at it at once, she can handle it ๐Ÿ’…


๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

So like, ksvalidator is a program that takes an input kickstart file and attempts to verify that it's syntactically correct. attempts!! She's doing her best. ๐Ÿซถ

What does "syntactically correct" even cover? Bestie, let me tell you:

  • the basics, like proper quoting and making sure required options actually have values โœจ
  • the more advanced stuff, like verifying the file doesn't include deprecated or removed kickstart commands ๐Ÿ‘‘
  • mutually exclusive options โ€” caught ๐ŸŽฏ
  • certain classes of partitioning errors, like using the same device name multiple times ๐Ÿ’€

now the part where I keep it real with you: ksvalidator does have its limitations, fr fr.

  • It cannot run validate the syntax of %pre, %pre-install, and %post scripts, nor does it attempt to run them ๐Ÿ™ˆ
  • It cannot check that the %packages section is valid ๐Ÿ˜ญ
  • Most importantly: it cannot guarantee that an input kickstart file will install properly, because it does not understand the complexities of partitioning and what potentially already exists on disk. like, at all.
read that last bullet twice, babe. passing ksvalidator is not a promise your install goes off without a hitch. She's a syntax girlie, not a psychic. ๐Ÿ”ฎ

โญ EXIT STATUS โญ

ksvalidator returns 0 on success, and a value equal to the amount of errors if some INFILEs do not exist or there are errors parsing the kickstart files.

so like, 0 = slay, and any other number = that many problems. the math is mathing ๐Ÿ“Š


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -e, --firsterror โ€” Stop on the first warning or error. By default, ksvalidator will attempt to process the entire file, potentially raising multiple errors. so this one's for the girlies who can't handle the whole list of their mistakes at once ๐Ÿ˜ญ
  • -i, --followincludes โ€” Process included files in the input file when they are seen, like anaconda would. If the included file does not exist (this can happen for a variety of reasons, but the most common being a %pre script that generates an included file) and this option is given, an error will be generated and processing halted. halted!! ๐Ÿ›‘
  • -l, --listversions โ€” List all versions of kickstart syntax supported by ksvalidator. This is useful for determining what values can be fed back in on a second run. literally a little menu of vibes you can pick from later ๐Ÿ“
  • -v, --version VERSION โ€” Use this version of kickstart syntax when processing the file, or the latest if no version is given. no version? she just assumes latest, main character energy ๐Ÿ‘‘

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

ksflatten (1), ksshell (1), ksverdiff (1)

the whole friend group!! go say hi ๐Ÿ’–


and that's the page, bestie ๐ŸŒˆ โ€” this one's from the General Commands Manual, footer and all reading KSVALIDATOR(1). mwah, go validate something ๐Ÿ’‹

๐Ÿ“ฆ where this page comes from