Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

2.2.2.7. pykickstart

pykickstart 软件包包含可让迁移变得轻松的工具。请确定您安装了最新的软件包。ksverdiff 命令使用起始和终止语法版本,并报告两个给出的版本间命令和选项的不同。它陈述了新的、弃用的和删除的命令及选项。例如:
$ ksverdiff --from RHEL5 --to RHEL6

The following commands were removed in RHEL6:
langsupport mouse key

The following commands were deprecated in RHEL6:
monitor

The following commands were added in RHEL6:
sshpw group rescue updates fcoe
...
您还可以使用 ksvalidator 命令检查您 Kickstart 文件的有效性。这个命令根据您指定的 Kickstart 语法版本检查文件的有效性。但是它不能告诉您那些只在安装时出现的问题。例如:如果您指定 part --ondisk=sdr,但该设备并不存在。用法示例:
$ ksvalidator --version RHEL6 my-rhel5-ks.cfg