The kickstart file is a simple text file, containing a list of items, each identified by a keyword. You can create it by using the Kickstart Configurator application, or writing it from scratch. The Fedora installation program also creates a sample kickstart file based on the options that you selected during installation. It is written to the file /root/anaconda-ks.cfg
. You should be able to edit it with any text editor or word processor that can save files as ASCII text.
首先,在你创建 kickstart 文件时留意下列问题:
每节必须按顺序指定。除非特别申明,每节内的项目则不必按序排列。小节的顺序为:
不必需的项目可以被省略。
如果忽略任何必需的项目,安装程序会提示用户输入相关的项目的选择,就象用户在典型的安装过程中所遇到的一样。一旦用户进行了选择,安装会以非交互的方式(unattended)继续(除非找到另外一个没有指定的项目)。
以井号(“#”)开头的行被当作注释行并被忽略。
对于 kickstart 升级,下列项目是必需的:
如果任何其他的项目被指定为 upgrade,这些项目将被忽略(注意这包括了软件包选择)。