autopart
(可选)
自动创建分区 — 大于 1GB 的根分区(
/
)、交换分区和适合于不同体系结构的引导分区。一个或多个缺省分区的大小可以用
part
指令重新定义。
--encrypted
— Should all devices with support be encrypted by default? This is equivalent to checking the Encrypt checkbox on the initial partitioning screen.
--passphrase=
— Provide a default system-wide passphrase for all encrypted devices.
ignoredisk
(可选)
导致安装程序忽略指定的磁盘。如果你使用自动分区并希望忽略某些磁盘的话,这就很有用。例如,没有
ignoredisk
,如要试图在 SAN-cluster 系统里部署,kickstart 就会失败,因为安装程序检测到 SAN 不返回分区表的被动路径(passive path)。
如果你有磁盘的多个路径时,ignoredisk
选项也有用处。
语法是:
ignoredisk --drives=drive1,drive2
,...
这里 driveN
是 sda
、sdb
... hda
等等中的一个。
autostep
(可选)
和
interactive
相似,除了它进入下一屏幕。它通常用于调试。
auth
或 authconfig
(必需)
为系统设置验证选项。这和在安装后运行的
authconfig
命令相似。在缺省情况下,密码通常被加密但不使用影子文件(shadowed)。
--enablemd5
— Use md5 encryption for user passwords.
--enablenis
— Turns on NIS support. By default, --enablenis
uses whatever domain it finds on the network. A domain should almost always be set by hand with the --nisdomain=
option.
--nisdomain=
— NIS domain name to use for NIS services.
--nisserver=
— Server to use for NIS services (broadcasts by default).
--useshadow
or --enableshadow
— Use shadow passwords.
--enableldap
— Turns on LDAP support in /etc/nsswitch.conf
, allowing your system to retrieve information about users (UIDs, home directories, shells, etc.) from an LDAP directory. To use this option, you must install the nss_ldap
package. You must also specify a server and a base DN (distinguished name) with --ldapserver=
and --ldapbasedn=
.
--enableldapauth
— Use LDAP as an authentication method. This enables the pam_ldap
module for authentication and changing passwords, using an LDAP directory. To use this option, you must have the nss_ldap
package installed. You must also specify a server and a base DN with --ldapserver=
and --ldapbasedn=
.
--ldapserver=
— If you specified either --enableldap
or --enableldapauth
, use this option to specify the name of the LDAP server to use. This option is set in the /etc/ldap.conf
file.
--ldapbasedn=
— If you specified either --enableldap
or --enableldapauth
, use this option to specify the DN in your LDAP directory tree under which user information is stored. This option is set in the /etc/ldap.conf
file.
--enableldaptls
— Use TLS (Transport Layer Security) lookups. This option allows LDAP to send encrypted usernames and passwords to an LDAP server before authentication.
--enablekrb5
— Use Kerberos 5 for authenticating users. Kerberos itself does not know about home directories, UIDs, or shells. If you enable Kerberos, you must make users' accounts known to this workstation by enabling LDAP, NIS, or Hesiod or by using the /usr/sbin/useradd
command. If you use this option, you must have the pam_krb5
package installed.
--krb5realm=
— The Kerberos 5 realm to which your workstation belongs.
--krb5kdc=
— The KDC (or KDCs) that serve requests for the realm. If you have multiple KDCs in your realm, separate their names with commas (,).
--krb5adminserver=
— The KDC in your realm that is also running kadmind. This server handles password changing and other administrative requests. This server must be run on the master KDC if you have more than one KDC.
--enablehesiod
— Enable Hesiod support for looking up user home directories, UIDs, and shells. More information on setting up and using Hesiod on your network is in /usr/share/doc/glibc-2.x.x/README.hesiod
, which is included in the glibc
package. Hesiod is an extension of DNS that uses DNS records to store information about users, groups, and various other items.
--hesiodlhs
— The Hesiod LHS ("left-hand side") option, set in /etc/hesiod.conf
. This option is used by the Hesiod library to determine the name to search DNS for when looking up information, similar to LDAP's use of a base DN.
--hesiodrhs
— The Hesiod RHS ("right-hand side") option, set in /etc/hesiod.conf
. This option is used by the Hesiod library to determine the name to search DNS for when looking up information, similar to LDAP's use of a base DN.
Note
要查找 "jim" 的用户信息,Hesiod 库查找 jim.passwd<LHS><RHS>,这解析为类似于(jim:*:501:501:Jungle Jim:/home/jim:/bin/bash
)的 TXT 记录。对于组,情况是相同的,除了将使用 jim.group<LHS><RHS>。
根据号码来查找用户和组是通过为 "jim.passwd" 建立 CNAME "501.uid" 以及为 "jim.group" 建立 CNAME "501.gid" 来处理的。注意,当库决定搜索的名字时,LHS 和 RHS 都没有句点 . 在前面,所以 LHS 和 RHS 通常都以句点开始。
--enablesmbauth
— Enables authentication of users against an SMB server (typically a Samba or Windows server). SMB authentication support does not know about home directories, UIDs, or shells. If you enable SMB, you must make users' accounts known to the workstation by enabling LDAP, NIS, or Hesiod or by using the /usr/sbin/useradd
command to make their accounts known to the workstation. To use this option, you must have the pam_smb
package installed.
--smbservers=
— The name of the server(s) to use for SMB authentication. To specify more than one server, separate the names with commas (,).
--smbworkgroup=
— The name of the workgroup for the SMB servers.
--enablecache
— Enables the nscd
service. The nscd
service caches information about users, groups, and various other types of information. Caching is especially helpful if you choose to distribute information about users and groups over your network using NIS, LDAP, or hesiod.
bootloader
(必需)
指定引导装载程序怎样被安装。对于安装和升级,这个选项都是必需的。
重要
If you select text mode for a kickstart installation, make sure that you specify choices for the partitioning, bootloader, and package selection options. These steps are automated in text mode, and anaconda cannot prompt you for missing information. If you do not provide choices for these options, anaconda will stop the installation process.
--append=
— Specifies kernel parameters. To specify multiple parameters, separate them with spaces. For example:
bootloader --location=mbr --append="hdd=ide-scsi ide=nodma"
--driveorder
— Specify which drive is first in the BIOS boot order. For example:
bootloader --driveorder=sda,hda
--location=
— Specifies where the boot record is written. Valid values are the following: mbr
(the default), partition
(installs the boot loader on the first sector of the partition containing the kernel), or none
(do not install the boot loader).
--password=
— If using GRUB, sets the GRUB boot loader password to the one specified with this option. This should be used to restrict access to the GRUB shell, where arbitrary kernel options can be passed.
--md5pass=
— If using GRUB, similar to --password=
except the password should already be encrypted.
--upgrade
— Upgrade the existing boot loader configuration, preserving the old entries. This option is only available for upgrades.
clearpart
(可选)
在创建新分区之前,从系统上删除分区。默认不会删除任何分区。
Note
如果使用了 clearpart
命令,--onpart
命令就不能够用在逻辑分区上。
--all
— Erases all partitions from the system.
--drives=
— Specifies which drives to clear partitions from. For example, the following clears all the partitions on the first two drives on the primary IDE controller:
clearpart --drives=hda,hdb --all
--initlabel
— Initializes the disk label to the default for your architecture (for example msdos
for x86 and gpt
for Itanium). It is useful so that the installation program does not ask if it should initialize the disk label if installing to a brand new hard drive.
--linux
— Erases all Linux partitions.
--none
(default) — Do not remove any partitions.
cmdline
(可选)
在完全的非交互式的命令行模式下进行安装。任何交互式的提示都会终止安装。这个模式对于有 x3270 控制台的 IBM System z 系统很有用。
device
(可选)
在多数的 PCI 系统里,安装程序会正确地自动探测以太网卡和 SCSI 卡。然而,在老的系统和某些 PCI 系统里,kickstart 需要提示来找到正确的设备。
device
命令用来告诉安装程序安装额外的模块,它有着这样的格式:
device <type>
<moduleName>
--opts=<options>
<type>
— Replace with either scsi
or eth
.
<moduleName>
— Replace with the name of the kernel module which should be installed.
--opts=
— Mount options to use for mounting the NFS export. Any options that can be specified in /etc/fstab
for an NFS mount are allowed. The options are listed in the nfs(5)
man page. Multiple options are separated with a comma.
driverdisk
(可选)
你可以在 kickstart 安装过程中使用驱动软盘。你必须把驱动软盘的内容复制到系统的硬盘分区的根目录下。然后你必须使用
driverdisk
命令来告诉安装程序到哪去寻找驱动磁盘。
driverdisk <partition>
[--type=<fstype>
]
另外,你也可以为驱动程序盘指定一个网络位置:
driverdisk --source=ftp://path/to/dd.img
driverdisk --source=http://path/to/dd.img
driverdisk --source=nfs:host:/path/to/img
<partition>
— Partition containing the driver disk.
--type=
— File system type (for example, vfat or ext2).
firewall
(可选)
这个选项对应安装程序里的
「防火墙配置」屏幕:
firewall --enabled|--disabled [--trust=] <device>
[--port=]
--enabled
or --enable
— Reject incoming connections that are not in response to outbound requests, such as DNS replies or DHCP requests. If access to services running on this machine is needed, you can choose to allow specific services through the firewall.
--disabled
or --disable
— Do not configure any iptables rules.
--trust=
— Listing a device here, such as eth0, allows all traffic coming from that device to go through the firewall. To list more than one device, use --trust eth0 --trust eth1
. Do NOT use a comma-separated format such as --trust eth0, eth1
.
<incoming>
— Replace with one or more of the following to allow the specified services through the firewall.
--ssh
--telnet
--smtp
--http
--ftp
--port=
— You can specify that ports be allowed through the firewall using the port:protocol format. For example, to allow IMAP access through your firewall, specify imap:tcp
. Numeric ports can also be specified explicitly; for example, to allow UDP packets on port 1234 through, specify 1234:udp
. To specify multiple ports, separate them by commas.
firstboot
(可选)
决定是否在系统第一次引导时启动
「设置代理」。如果启用,
firstboot
软件包必须被安装。如果不指定,这个选项是缺省为禁用的。
--enable
or --enabled
— The Setup Agent is started the first time the system boots.
--disable
or --disabled
— The Setup Agent is not started the first time the system boots.
--reconfig
— Enable the Setup Agent to start at boot time in reconfiguration mode. This mode enables the language, mouse, keyboard, root password, security level, time zone, and networking configuration options in addition to the default ones.
halt
(可选)
在成功地完成安装后关闭系统。这和手工安装相似,手工安装的 anaconda 会显示一条信息并等待用户按任意键来重启系统。在 kickstart 安装过程中,如果没有指定完成方法(completion method),将缺省使用
reboot
选项。
halt
选项基本和 shutdown -h
命令相同。
关于其他的完成方法,请参考 kickstart 的 poweroff
、reboot
和 shutdown
选项。
graphical
(可选)
在图形模式下执行 kickstart 安装。kickstart 安装默认在图形模式下安装。
install
(可选)
告诉系统来安装全新的系统而不是在现有系统上升级。这是缺省的模式。你必须指定安装的类型,如
cdrom
、
harddrive
、
nfs
或
url
(FTP 或 HTTP 安装)。
install
命令和安装方法命令必须处于不同的行上。
cdrom
— Install from the first CD-ROM drive on the system.
harddrive
— Install from a Red Hat installation tree on a local drive, which must be either vfat or ext2.
例如:
harddrive --partition=hdb2 --dir=/tmp/install-tree
nfs
— Install from the NFS server specified.
--server=
要从中安装的服务器(主机名或 IP)。
--dir=
包含安装树的 variant
目录的目录。
--opts=
用于挂载 NFS 输出的 Mount 选项(可选)。
例如:
nfs --server=nfsserver.example.com --dir=/tmp/install-tree
url
— Install from an installation tree on a remote server via FTP or HTTP.
例如:
url --url http://<server>
/<dir>
或:
url --url ftp://<username>
:<password>@<server>
/<dir>
interactive
(可选)
在安装过程中使用 kickstart 文件里提供的信息,但允许检查和修改给定的值。 你将遇到安装程序的每个屏幕以及 kickstart 文件里给出的值。通过点击
「下一步」接受给定的值或是改变值后点击
「下一步」继续。请参考
autostep
命令。
iscsi
(可选)
issci --ipaddr= [options].
--target
—
--port=
—
--user=
—
--password=
—
key
(可选)
Specify an installation key, which is needed to aid in package selection and identify your system for support purposes. This command is specific to Red Hat Enterprise Linux; it has no meaning for Fedora and will be ignored.
keyboard
(必需)
设置系统键盘类型。这里是 i386、Itanium、和 Alpha 机器上可用键盘的列表:
be-latin1, bg, br-abnt2, cf, cz-lat2, cz-us-qwertz, de, de-latin1,
de-latin1-nodeadkeys, dk, dk-latin1, dvorak, es, et, fi, fi-latin1,
fr, fr-latin0, fr-latin1, fr-pc, fr_CH, fr_CH-latin1, gr, hu, hu101,
is-latin1, it, it-ibm, it2, jp106, la-latin1, mk-utf, no, no-latin1,
pl, pt-latin1, ro_win, ru, ru-cp1251, ru-ms, ru1, ru2, ru_win,
se-latin1, sg, sg-latin1, sk-qwerty, slovene, speakup, speakup-lt,
sv-latin1, sg, sg-latin1, sk-querty, slovene, trq, ua, uk, us, us-acentos
文件 /usr/lib/python2.2/site-packages/rhpl/keyboard_models.py
也包含这个列表而且是 rhpl
软件包的一部分。
lang
(必需)
设置在安装过程中使用的语言以及系统的缺省语言。例如,要把语言设置为英语,kickstart 文件应该包含下面的一行:
lang en_US
文件 /usr/share/system-config-language/locale-list
里每一行的第一个字段提供了一个有效语言代码的列表,它是 system-config-language
软件包的一部分。
文本模式的安装过程不支持某些语言(主要是中文、日语、韩文和印度的语言)。如果用 lang 命令指定这些语言中的一种,安装过程仍然会使用英语,但是系统会缺省使用指定的语言。
langsupport
(deprecated)
langsupport 关键字已经被取消而且使用它将导致屏幕出现错误信息及终止安装。作为代替,你应该在 kickstart 文件里的 %packages
部分列出所支持的语言的支持软件包组。例如,要支持法语,你应该把下面的语句加入到 %packages
:
@french-support
logvol
(可选)
使用以下语法来为逻辑卷管理(LVM)创建逻辑卷:
logvol <mntpoint>
--vgname=<name>
--size=<size>
--name=<name>
<options>
这些选项如下所示:
--noformat
— Use an existing logical volume and do not format it.
--useexisting
— Use an existing logical volume and reformat it.
--fstype=
— Sets the file system type for the logical volume. Valid values are xfs
, ext2
, ext3
, ext4
, swap
, vfat
, and hfs
.
--fsoptions=
— Specifies a free form string of options to be used when mounting the filesystem. This string will be copied into the /etc/fstab
file of the installed system and should be enclosed in quotes.
--bytes-per-inode=
— Specifies the size of inodes on the filesystem to be made on the logical volume. Not all filesystems support this option, so it is silently ignored for those cases.
--grow=
— Tells the logical volume to grow to fill available space (if any), or up to the maximum size setting.
--maxsize=
— The maximum size in megabytes when the logical volume is set to grow. Specify an integer value here, and do not append the number with MB.
--recommended=
— Determine the size of the logical volume automatically.
--percent=
— Specify the size of the logical volume as a percentage of available space in the volume group.
首先创建分区,然后创建逻辑卷组,再创建逻辑卷。例如:
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol
logging
(可选)
这个命令控制安装过程中 anaconda 的错误日志。它对安装好的系统没有影响。
--host=
— Send logging information to the given remote host, which must be running a syslogd process configured to accept remote logging.
--port=
— If the remote syslogd process uses a port other than the default, it may be specified with this option.
--level=
— One of debug, info, warning, error, or critical.
指定 tty3 上显示的信息的最小级别。然而,无论这个级别怎么设置,所有的信息仍将发送到日志文件。
mediacheck
(可选)
如果指定的话,anaconda 将在安装介质上运行 mediacheck。这个命令只适用于交互式的安装,所以缺省是禁用的。
monitor
(可选)
如果 monitor 命令没有指定,anaconda 将使用 X 来自动检测你的显示器设置。请在手工配置显示器之前尝试这个命令。
--hsync=
— Specifies the horizontal sync frequency of the monitor.
--monitor=
— Use specified monitor; monitor name should be from the list of monitors in /usr/share/hwdata/MonitorsDB from the hwdata package. The list of monitors can also be found on the X Configuration screen of the Kickstart Configurator. This is ignored if --hsync or --vsync is provided. If no monitor information is provided, the installation program tries to probe for it automatically.
--noprobe=
— Do not try to probe the monitor.
--vsync=
— Specifies the vertical sync frequency of the monitor.
mouse
(已取消)
The mouse keyword is deprecated.
network
(可选)
为系统配置网络信息。如果 kickstart 安装不要求联网(换句话说,不从 NFS、HTTP 或 FTP 安装),就不需要为系统配置网络。如果安装要求联网而 kickstart 文件里没有提供网络信息,安装程序会假定从 eth0 通过动态 IP 地址(BOOTP/DHCP)来安装,并配置安装完的系统动态决定 IP 地址。network
选项为通过网络的 kickstart 安装以及所安装的系统配置联网信息。
--bootproto=
— One of dhcp
, bootp
, or static
.
缺省值是 dhcp
。bootp
和 dhcp
被认为是相同的.
DHCP 方法使用 DHCP 服务器系统来获取它的联网配置。你可以会猜到,BOOTP 方法和它很相似,要求 BOOTP 服务器来提供网络配置。要指示系统使用 DHCP:
network --bootproto=dhcp
要指示某机器使用 BOOTP 来获取它的联网配置,在 kickstart 文件中使用以下行:
network --bootproto=bootp
static 方法要求你在 kickstart 文件里输入所有的网络信息。顾名思义,这些信息是静态的且在安装过程中和安装后所有。静态网络的设置行更为复杂,因为你必须包括所有的网络配置信息。你必须指定 IP 地址、网络、网关和命名服务器。例如("\"表示连续的行):
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0 \
--gateway=10.0.2.254 --nameserver=10.0.2.1
如果你使用静态方法,请注意以下两个限制:
所有静态联网配置信息都必须在一行上指定;你不能使用反斜线来换行。
You can also configure multiple nameservers here. To do so, specify them as a comma-delimited list in the command line. For example:
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0 \
--gateway=10.0.2.254 --nameserver 192.168.2.1,192.168.3.1
--device=
— Used to select a specific Ethernet device for installation. Note that using --device=
is not effective unless the kickstart file is a local file (such as ks=floppy
), since the installation program configures the network to find the kickstart file. For example:
network --bootproto=dhcp --device=eth0
--ip=
— IP address for the machine to be installed.
--gateway=
— Default gateway as an IP address.
--nameserver=
— Primary nameserver, as an IP address.
--nodns
— Do not configure any DNS server.
--netmask=
— Netmask for the installed system.
--hostname=
— Hostname for the installed system.
--ethtool=
— Specifies additional low-level settings for the network device which will be passed to the ethtool program.
--essid=
— The network ID for wireless networks.
--wepkey=
— The encryption key for wireless networks.
--onboot=
— Whether or not to enable the device at boot time.
--class=
— The DHCP class.
--mtu=
— The MTU of the device.
--noipv4
— Disable IPv4 on this device.
--noipv6
— Disable IPv6 on this device.
multipath
(可选)
multipath --name= --device= --rule=
-
part
或 partition
(对于安装是必需的,升级可忽略)。
在系统上创建分区。
If more than one Fedora installation exists on the system on different partitions, the installation program prompts the user and asks which installation to upgrade.
Warning
作为安装过程的一部分,所有被创建的分区都会被格式化,除非使用了 --noformat
和 --onpart
。
重要
If you select text mode for a kickstart installation, make sure that you specify choices for the partitioning, bootloader, and package selection options. These steps are automated in text mode, and anaconda cannot prompt you for missing information. If you do not provide choices for these options, anaconda will stop the installation process.
<mntpoint>
— The <mntpoint>
is where the partition is mounted and must be of one of the following forms:
/<path>
例如,/
、/usr
、/home
swap
该分区被用作交换空间。
要自动决定交换分区的大小,使用 --recommended
选项:
swap --recommended
The recommended maximum swap size for machines with less than 2GB of RAM is twice the amount of RAM. For machines with 2GB or more, this recommendation changes to 2GB plus the amount of RAM.
raid.<id>
该分区用于 software RAID(参考 raid
)。
pv.<id>
该分区用于 LVM(参考 logvol
)。
--size=
— The minimum partition size in megabytes. Specify an integer value here such as 500. Do not append the number with MB.
--grow
— Tells the partition to grow to fill available space (if any), or up to the maximum size setting.
Note
If you use --grow=
without setting --maxsize=
on a swap partition, Anaconda will limit the maximum size of the swap partition. For systems that have less than 2GB of physical memory, the imposed limit is twice the amount of physical memory. For systems with more than 2GB, the imposed limit is the size of physical memory plus 2GB.
--maxsize=
— The maximum partition size in megabytes when the partition is set to grow. Specify an integer value here, and do not append the number with MB.
--noformat
— Tells the installation program not to format the partition, for use with the --onpart
command.
--onpart=
or --usepart=
— Put the partition on the already existing device. For example:
partition /home --onpart=hda1
把 /home
置于必须已经存在的 /dev/hda1
上。
--ondisk=
or --ondrive=
— Forces the partition to be created on a particular disk. For example, --ondisk=sdb
puts the partition on the second SCSI disk on the system.
--asprimary
— Forces automatic allocation of the partition as a primary partition, or the partitioning fails.
--type=
(replaced by fstype
) — This option is no longer available. Use fstype
.
--fstype=
— Sets the file system type for the partition. Valid values are xfs
, ext2
, ext3
, ext4
, swap
, vfat
, and hfs
.
--start=
— Specifies the starting cylinder for the partition. It requires that a drive be specified with --ondisk=
or ondrive=
. It also requires that the ending cylinder be specified with --end=
or the partition size be specified with --size=
.
--end=
— Specifies the ending cylinder for the partition. It requires that the starting cylinder be specified with --start=
.
--bytes-per-inode=
— Specifies the size of inodes on the filesystem to be made on the partition. Not all filesystems support this option, so it is silently ignored for those cases.
--recommended
— Determine the size of the partition automatically.
--onbiosdisk
— Forces the partition to be created on a particular disk as discovered by the BIOS.
--encrypted
— Specifies that this partition should be encrypted.
--passphrase=
— Specifies the passphrase to use when encrypting this partition. Without the above --encrypted
option, this option does nothing. If no passphrase is specified, the default system-wide one is used, or the installer will stop and prompt if there is no default.
Note
如果因为某种原因分区失败了,虚拟终端 3 上会显示诊断信息。
-
poweroff
(可选)
在安装成功后关闭系统并断电。通常,在手工安装过程中,anaconda 会显示一条信息并等待用户按任意键来重新启动系统。在 kickstart 的安装过程中,如果没有指定完成方法,将使用缺省的 reboot
选项。
poweroff
选项和 shutdown -p
基本相同。
Note
poweroff
选项和系统硬件非常相关。特别是,某些硬件部件如 BIOS、APM(高级电源管理)和 ACPI(高级配置和电源接口)必须能和系统内核相互作用。关于系统的 APM/ACPI 能力的更多信息,请和生产商联系。
关于其他的完成方法,请参考 halt
、reboot
和 shutdown
kickstart 选项。
-
raid
(可选)
组成软件 RAID 设备。该命令的格式是:
raid <mntpoint>
--level=<level>
--device=<mddevice>
<partitions*>
<mntpoint>
— Location where the RAID file system is mounted. If it is /
, the RAID level must be 1 unless a boot partition (/boot
) is present. If a boot partition is present, the /boot
partition must be level 1 and the root (/
) partition can be any of the available types. The <partitions*>
(which denotes that multiple partitions can be listed) lists the RAID identifiers to add to the RAID array.
--level=
— RAID level to use (0, 1, or 5).
--device=
— Name of the RAID device to use (such as md0 or md1). RAID devices range from md0 to md15, and each may only be used once.
--bytes-per-inode=
— Specifies the size of inodes on the filesystem to be made on the RAID device. Not all filesystems support this option, so it is silently ignored for those cases.
--spares=
— Specifies the number of spare drives allocated for the RAID array. Spare drives are used to rebuild the array in case of drive failure.
--fstype=
— Sets the file system type for the RAID array. Valid values are xfs
, ext2
, ext3
, ext4
, swap
, vfat
, and hfs
.
--fsoptions=
— Specifies a free form string of options to be used when mounting the filesystem. This string will be copied into the /etc/fstab file of the installed system and should be enclosed in quotes.
--noformat
— Use an existing RAID device and do not format the RAID array.
--useexisting
— Use an existing RAID device and reformat it.
--encrypted
— Specifies that this RAID device should be encrypted.
--passphrase=
— Specifies the passphrase to use when encrypting this RAID device. Without the above --encrypted
option, this option does nothing. If no passphrase is specified, the default system-wide one is used, or the installer will stop and prompt if there is no default.
下面的例子展示了假定系统里有三个 SCSI 磁盘的情况下,怎样创建 /
上的 RAID 1 分区,以及 /usr
上的 RAID 5 分区。它也为每个磁盘创建一个交换分区,一共三个。
part raid.01 --size=60 --ondisk=sda
part raid.02 --size=60 --ondisk=sdb
part raid.03 --size=60 --ondisk=sdc
part swap --size=128 --ondisk=sda
part swap --size=128 --ondisk=sdb
part swap --size=128 --ondisk=sdc
part raid.11 --size=1 --grow --ondisk=sda
part raid.12 --size=1 --grow --ondisk=sdb
part raid.13 --size=1 --grow --ondisk=sdc
raid / --level=1 --device=md0 raid.01 raid.02 raid.03
raid /usr --level=5 --device=md1 raid.11 raid.12 raid.13
-
reboot
(可选)
在成功完成安装(没有参数)后重新启动。通常,kickstart 会显示信息并等待用户按任意键来重新启动系统。
reboot
选项基本和 shutdown -r
命令相同。
Note
使用 reboot
选项可能会导致安装的死循环,这依赖于安装介质和方法。
如果在 kickstart 文件里没有显性地指定其他方法的话,reboot
选项是缺省的完成方法。
关于其他的完成方法,请参考 halt
、poweroff
和 shutdown
kickstart 选项。
repo
(可选)
配置用于软件包安装来源的额外的 yum 库。可以指定多个 repo 行。
repo --name=<repoid>
[--baseurl=<url>
| --mirrorlist=<url>
]
--name=
— The repo id. This option is required.
--baseurl=
— The URL for the repository. The variables that may be used in yum repo config files are not supported here. You may use one of either this option or --mirrorlist, not both.
--mirrorlist=
— The URL pointing at a list of mirrors for the repository. The variables that may be used in yum repo config files are not supported here. You may use one of either this option or --baseurl, not both.
rootpw
(必需)
把系统的根口令设置为
<password>
参数。
rootpw [--iscrypted] <password>
selinux
(可选)
在系统里设置 SELinux 状态。在 anaconda 里,SELinux 缺省为 enforcing。
selinux [--disabled|--enforcing|--permissive]
--enforcing
— Enables SELinux with the default targeted policy being enforced.
Note
如果 kickstart 文件里没有 selinux
选项,SELinux 将被启用并缺省设置为 --enforcing
。
--permissive
— Outputs warnings based on the SELinux policy, but does not actually enforce the policy.
--disabled
— Disables SELinux completely on the system.
For complete information regarding SELinux for Fedora, refer to the Fedora 11 Security-Enhanced Linux User Guide.
services
(可选)
修改运行在缺省运行级别下的缺省的服务集。在 disabled 列表里列出的服务将在 enabled 列表里的服务启用之前被禁用。
Do not include spaces in the list of services
If you include spaces in the comma-separated list, kickstart will enable or disable only the services up to the first space. For example:
services --disabled auditd, cups,smartd, nfslock
will disable only the auditd service. To disable all four services, this entry should include no spaces between services:
services --disabled auditd,cups,smartd,nfslock
shutdown
(可选)
在成功完成安装后关闭系统。在 kickstart 安装过程中,如果没有指定完成方法,将使用缺省的
reboot
选项。
shutdown
选项和 shutdown
命令大体相同。
关于其他的完成方法,请参考 halt
、poweroff
和 reboot
kickstart 选项。
skipx
(可选)
如果存在,安装的系统上就不会配置 X。
text
(可选)
在文本模式下执行 kickstart 安装。 kickstart 安装默认在图形模式下安装。
重要
If you select text mode for a kickstart installation, make sure that you specify choices for the partitioning, bootloader, and package selection options. These steps are automated in text mode, and anaconda cannot prompt you for missing information. If you do not provide choices for these options, anaconda will stop the installation process.
timezone
(可选)
把系统时区设置为
<timezone>
,它可以是
timeconfig
列出的任何时区。
timezone [--utc] <timezone>
upgrade
(可选)
告诉系统升级现有的系统而不是安装一个全新的系统。你必须指定
cdrom
、
harddrive
、
nfs
或
url
(对于 FTP 和 HTTP 而言)中的一个作为安装树的位置。详情请参考
install
。
user
(可选) user --name=<username>
[--groups=<list>
] [--homedir=<homedir>
] [--password=<password>
] [--iscrypted] [--shell=<shell>
] [--uid=<uid>
]
--name=
— Provides the name of the user. This option is required.
--groups=
— In addition to the default group, a comma separated list of group names the user should belong to.
--homedir=
— The home directory for the user. If not provided, this defaults to /home/<username>
.
--password=
— The new user's password. If not provided, the account will be locked by default.
--iscrypted=
— Is the password provided by --password already encrypted or not?
--shell=
— The user's login shell. If not provided, this defaults to the system default.
--uid=
— The user's UID. If not provided, this defaults to the next available non-system UID.
vnc
(可选)
允许通过 VNC 远程地查看图形化的安装。文本模式的安装通常更喜欢使用这个方法,因为在文本模式下有某些大小和语言的限制。如果为 no,这个命令将启动不需要密码的 VNC 服务器并打印出需要用来连接远程机器的命令。
vnc [--host=<hostname>
] [--port=<port>
] [--password=<password>
]
--host=
— Instead of starting a VNC server on the install machine, connect to the VNC viewer process listening on the given hostname.
--port=
— Provide a port that the remote VNC viewer process is listening on. If not provided, anaconda will use the VNC default.
--password=
— Set a password which must be provided to connect to the VNC session. This is optional, but recommended.
volgroup
(可选)
用来创建逻辑卷管理(LVM)组,其语法格式为:
volgroup <name>
<partition>
<options>
这些选项如下所示:
--noformat
— Use an existing volume group and do not format it.
--useexisting
— Use an existing volume group and reformat it.
--pesize=
— Set the size of the physical extents.
首先创建分区,然后创建逻辑卷组,再创建逻辑卷。例如:
part pv.01 --size 3000
volgroup myvg pv.01
logvol / --vgname=myvg --size=2000 --name=rootvol
xconfig
(可选)
配置 X Window 系统。如果没有指定这个选项且安装了 X,用户必须在安装过程中手工配置 X;如果最终系统里没有安装 X,这个选项不应该被使用。
--driver
— Specify the X driver to use for the video hardware.
--videoram=
— Specifies the amount of video RAM the video card has.
--defaultdesktop=
— Specify either GNOME or KDE to set the default desktop (assumes that GNOME Desktop Environment and/or KDE Desktop Environment has been installed through %packages
).
--startxonboot
— Use a graphical login on the installed system.
--resolution=
— Specify the default resolution for the X Window System on the installed system. Valid values are 640x480, 800x600, 1024x768, 1152x864, 1280x1024, 1400x1050, 1600x1200. Be sure to specify a resolution that is compatible with the video card and monitor.
--depth=
— Specify the default color depth for the X Window System on the installed system. Valid values are 8, 16, 24, and 32. Be sure to specify a color depth that is compatible with the video card and monitor.
zerombr
(可选)
If
zerombr
is specified any invalid partition tables found on disks are initialized. This destroys all of the contents of disks with invalid partition tables.
Note that this command was previously specified as zerombr yes
. This form is now deprecated; you should now simply specify zerombr
in your kickstart file instead.
zfcp
(可选)
Define a Fiber channel device (IBM System z).
zfcp [--devnum=<devnum>
] [--fcplun=<fcplun>
] [--scsiid=<scsiid>
] [--scsilun=<scsilun>
] [--wwpn=<wwpn>
]
%include
(optional)
使用
%include /path/to/file
命令可以把其他文件的内容包含在 kickstart 文件里,就好像这些内容出现在 kickstart 文件的
%include
命令后一样。