Red Hat Training

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

28.4. kickstart 选​​​​​​​项​​​​​​​

The following options can be placed in a kickstart file. If you prefer to use a graphical interface for creating your kickstart file, use the Kickstart Configurator application. Refer to 第 29 章 Kickstart Configurator for details.


Automatically create partitions — 1 GB or more root (/) partition, a swap partition, and an appropriate boot partition for the architecture. One or more of the default partition sizes can be redefined with the part directive.
Causes the installer to ignore the specified disks. This is useful if you use autopartition and want to be sure that some disks are ignored. For example, without ignoredisk, attempting to deploy on a SAN-cluster the kickstart would fail, as the installer detects passive paths to the SAN that return no partition table.
如​​​​​​​果​​​​​​​你​​​​​​​有​​​​​​​磁​​​​​​​盘​​​​​​​的​​​​​​​多​​​​​​​个​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​,ignoredisk 选​​​​​​​项​​​​​​​也​​​​​​​有​​​​​​​用​​​​​​​处​​​​​​​。​​​​​​​
ignoredisk --drives=drive1,drive2,...
这​​​​​​​里​​​​​​​ driveN 是​​​​​​​ sda、​​​​​​​sdb ... hda 等​​​​​​​等​​​​​​​中​​​​​​​的​​​​​​​一​​​​​​​个​​​​​​​。​​​​​​​
Similar to interactive except it goes to the next screen for you. It is used mostly for debugging.
  • --autoscreenshot — Take a screenshot at every step during installation and copy the images over to /root/anaconda-screenshots after installation is complete. This is most useful for documentation.
auth 或​​​​​​​ authconfig(必​​​​​​​需​​​​​​​)
Sets up the authentication options for the system. It is similar to the authconfig command, which can be run after the install. By default, passwords are normally encrypted and are not 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.


    To look up user information for "jim", the Hesiod library looks up jim.passwd<LHS><RHS>, which should resolve to a TXT record that looks like what his passwd entry would look like (jim:*:501:501:Jungle Jim:/home/jim:/bin/bash). For groups, the situation is identical, except<LHS><RHS> would be used.
    Looking up users and groups by number is handled by making "501.uid" a CNAME for "jim.passwd", and "501.gid" a CNAME for "". Note that the library does not place a period . in front of the LHS and RHS values when performing a search. Therefore the LHS and RHS values need to have a period placed in front of them in order if they require this.
  • --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.
Specifies how the boot loader should be installed. This option is required for both installations and upgrades.
  • --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.
Removes partitions from the system, prior to creation of new partitions. By default, no partitions are removed.


如​​​​​​​果​​​​​​​使​​​​​​​用​​​​​​​了​​​​​​​ 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.
Perform the installation in a completely non-interactive command line mode. Any prompts for interaction halts the install. This mode is useful on IBM System z systems with the x3270 console.
On most PCI systems, the installation program autoprobes for Ethernet and SCSI cards properly. On older systems and some PCI systems, however, kickstart needs a hint to find the proper devices. The device command, which tells the installation program to install extra modules, is in this format:
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.
Driver diskettes can be used during kickstart installations. You must copy the driver diskettes's contents to the root directory of a partition on the system's hard drive. Then you must use the driverdisk command to tell the installation program where to look for the driver disk.
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).
This option corresponds to the Firewall Configuration screen in the installation program:
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.
Determine whether the Setup Agent starts the first time the system is booted. If enabled, the firstboot package must be installed. If not specified, this option is disabled by default.
  • --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 the system after the installation has successfully completed. This is similar to a manual installation, where anaconda displays a message and waits for the user to press a key before rebooting. During a kickstart installation, if no completion method is specified, the reboot option is used as default.
halt 选​​​​​​​项​​​​​​​基​​​​​​​本​​​​​​​和​​​​​​​ shutdown -h 命​​​​​​​令​​​​​​​相​​​​​​​同​​​​​​​。​​​​​​​
关​​​​​​​于​​​​​​​其​​​​​​​他​​​​​​​的​​​​​​​完​​​​​​​成​​​​​​​方​​​​​​​法​​​​​​​,请​​​​​​​参​​​​​​​考​​​​​​​ kickstart 的​​​​​​​ poweroff、​​​​​​​reboot 和​​​​​​​ shutdown 选​​​​​​​项​​​​​​​。​​​​​​​
Perform the kickstart installation in graphical mode. This is the default.
Tells the system to install a fresh system rather than upgrade an existing system. This is the default mode. For installation, you must specify the type of installation from cdrom, harddrive, nfs, or url (for FTP or HTTP installations). The install command and the installation method command must be on separate lines.
  • 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.
    • --biospart=
      从​​​​​​​ BIOS 分​​​​​​​区​​​​​​​来​​​​​​​安​​​​​​​装​​​​​​​(如​​​​​​​ 82)。​​​​​​​
    • --partition=
      从​​​​​​​分​​​​​​​区​​​​​​​安​​​​​​​装​​​​​​​(如​​​​​​​ sdb2)。​​​​​​​
    • --dir=
      包​​​​​​​含​​​​​​​安​​​​​​​装​​​​​​​树​​​​​​​的​​​​​​​ variant 目​​​​​​​录​​​​​​​的​​​​​​​目​​​​​​​录​​​​​​​。​​​​​​​
    harddrive --partition=hdb2 --dir=/tmp/install-tree
  • nfs — Install from the NFS server specified.
    • --server=
      要​​​​​​​从​​​​​​​中​​​​​​​安​​​​​​​装​​​​​​​的​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​(主​​​​​​​机​​​​​​​名​​​​​​​或​​​​​​​ IP)。​​​​​​​
    • --dir=
      包​​​​​​​含​​​​​​​安​​​​​​​装​​​​​​​树​​​​​​​的​​​​​​​ variant 目​​​​​​​录​​​​​​​的​​​​​​​目​​​​​​​录​​​​​​​。​​​​​​​
    • --opts=
      用​​​​​​​于​​​​​​​挂​​​​​​​载​​​​​​​ NFS 输​​​​​​​出​​​​​​​的​​​​​​​ Mount 选​​​​​​​项​​​​​​​(可​​​​​​​选​​​​​​​)。​​​​​​​
    nfs --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>
Uses the information provided in the kickstart file during the installation, but allow for inspection and modification of the values given. You are presented with each screen of the installation program with the values from the kickstart file. Either accept the values by clicking Next or change the values and click Next to continue. Refer to the autostep command.
issci --ipaddr= [options].
  • --target
  • --port=
  • --user=
  • --password=
Specify an installation key, which is needed to aid in package selection and identify your system for support purposes. This command is Red Hat Enterprise Linux-specific; it has no meaning for Fedora and will be ignored.
  • --skip — Skip entering a key. Usually if the key command is not given, anaconda will pause at this step to prompt for a key. This option allows automated installation to continue if you do not have a key or do not want to provide one.
Sets system keyboard type. Here is the list of available keyboards on i386, Itanium, and Alpha machines:
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/ 也​​​​​​​包​​​​​​​含​​​​​​​这​​​​​​​个​​​​​​​列​​​​​​​表​​​​​​​而​​​​​​​且​​​​​​​是​​​​​​​ rhpl 软​​​​​​​件​​​​​​​包​​​​​​​的​​​​​​​一​​​​​​​部​​​​​​​分​​​​​​​。​​​​​​​
lang (required)
设​​​​​​​置​​​​​​​在​​​​​​​安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​语​​​​​​​言​​​​​​​以​​​​​​​及​​​​​​​系​​​​​​​统​​​​​​​的​​​​​​​缺​​​​​​​省​​​​​​​语​​​​​​​言​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​,要​​​​​​​把​​​​​​​语​​​​​​​言​​​​​​​设​​​​​​​置​​​​​​​为​​​​​​​英​​​​​​​语​​​​​​​,kickstart 文​​​​​​​件​​​​​​​应​​​​​​​该​​​​​​​包​​​​​​​含​​​​​​​下​​​​​​​面​​​​​​​的​​​​​​​一​​​​​​​行​​​​​​​:
lang en_US
文​​​​​​​件​​​​​​​ /usr/share/system-config-language/locale-list 里​​​​​​​每​​​​​​​一​​​​​​​行​​​​​​​的​​​​​​​第​​​​​​​一​​​​​​​个​​​​​​​字​​​​​​​段​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​一​​​​​​​个​​​​​​​有​​​​​​​效​​​​​​​语​​​​​​​言​​​​​​​代​​​​​​​码​​​​​​​的​​​​​​​列​​​​​​​表​​​​​​​,它​​​​​​​是​​​​​​​ system-config-language 软​​​​​​​件​​​​​​​包​​​​​​​的​​​​​​​一​​​​​​​部​​​​​​​分​​​​​​​。​​​​​​​
文​​​​​​​本​​​​​​​模​​​​​​​式​​​​​​​的​​​​​​​安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​不​​​​​​​支​​​​​​​持​​​​​​​某​​​​​​​些​​​​​​​语​​​​​​​言​​​​​​​(主​​​​​​​要​​​​​​​是​​​​​​​中​​​​​​​文​​​​​​​、​​​​​​​日​​​​​​​语​​​​​​​、​​​​​​​韩​​​​​​​文​​​​​​​和​​​​​​​印​​​​​​​度​​​​​​​的​​​​​​​语​​​​​​​言​​​​​​​)。​​​​​​​如​​​​​​​果​​​​​​​用​​​​​​​ lang 命​​​​​​​令​​​​​​​指​​​​​​​定​​​​​​​这​​​​​​​些​​​​​​​语​​​​​​​言​​​​​​​中​​​​​​​的​​​​​​​一​​​​​​​种​​​​​​​,安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​仍​​​​​​​然​​​​​​​会​​​​​​​使​​​​​​​用​​​​​​​英​​​​​​​语​​​​​​​,但​​​​​​​是​​​​​​​系​​​​​​​统​​​​​​​会​​​​​​​缺​​​​​​​省​​​​​​​使​​​​​​​用​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​语​​​​​​​言​​​​​​​。​​​​​​​
langsupport (deprecated)
langsupport 关​​​​​​​键​​​​​​​字​​​​​​​已​​​​​​​经​​​​​​​被​​​​​​​取​​​​​​​消​​​​​​​而​​​​​​​且​​​​​​​使​​​​​​​用​​​​​​​它​​​​​​​将​​​​​​​导​​​​​​​致​​​​​​​屏​​​​​​​幕​​​​​​​出​​​​​​​现​​​​​​​错​​​​​​​误​​​​​​​信​​​​​​​息​​​​​​​及​​​​​​​终​​​​​​​止​​​​​​​安​​​​​​​装​​​​​​​。​​​​​​​作​​​​​​​为​​​​​​​代​​​​​​​替​​​​​​​,你​​​​​​​应​​​​​​​该​​​​​​​在​​​​​​​ kickstart 文​​​​​​​件​​​​​​​里​​​​​​​的​​​​​​​ %packages 部​​​​​​​分​​​​​​​列​​​​​​​出​​​​​​​所​​​​​​​支​​​​​​​持​​​​​​​的​​​​​​​语​​​​​​​言​​​​​​​的​​​​​​​支​​​​​​​持​​​​​​​软​​​​​​​件​​​​​​​包​​​​​​​组​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​,要​​​​​​​支​​​​​​​持​​​​​​​法​​​​​​​语​​​​​​​,你​​​​​​​应​​​​​​​该​​​​​​​把​​​​​​​下​​​​​​​面​​​​​​​的​​​​​​​语​​​​​​​句​​​​​​​加​​​​​​​入​​​​​​​到​​​​​​​ %packages
logvol (optional)
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 ext2, ext3, swap, and vfat.
  • --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 (optional)
这​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​控​​​​​​​制​​​​​​​安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​中​​​​​​​ 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 (optional)
如​​​​​​​果​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​话​​​​​​​,anaconda 将​​​​​​​在​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​上​​​​​​​运​​​​​​​行​​​​​​​ mediacheck。​​​​​​​这​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​只​​​​​​​适​​​​​​​用​​​​​​​于​​​​​​​交​​​​​​​互​​​​​​​式​​​​​​​的​​​​​​​安​​​​​​​装​​​​​​​,所​​​​​​​以​​​​​​​缺​​​​​​​省​​​​​​​是​​​​​​​禁​​​​​​​用​​​​​​​的​​​​​​​。​​​​​​​
monitor (optional)
如​​​​​​​果​​​​​​​ 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 (deprecated)
The mouse keyword is deprecated.
network (optional)
为​​​​​​​系​​​​​​​统​​​​​​​配​​​​​​​置​​​​​​​网​​​​​​​络​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​ 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
    The static method requires that you enter all the required networking information in the kickstart file. As the name implies, this information is static and are used during and after the installation. The line for static networking is more complex, as you must include all network configuration information on one line. You must specify the IP address, netmask, gateway, and nameserver. For example: (the "\" indicates that this should be read as one continuous line):
    network --bootproto=static --ip= --netmask= \
    --gateway= --nameserver=
    • 所​​​​​​​有​​​​​​​静​​​​​​​态​​​​​​​联​​​​​​​网​​​​​​​配​​​​​​​置​​​​​​​信​​​​​​​息​​​​​​​都​​​​​​​必​​​​​​​须​​​​​​​在​​​​​​​一​​​​​​​行​​​​​​​上​​​​​​​指​​​​​​​定​​​​​​​;你​​​​​​​不​​​​​​​能​​​​​​​使​​​​​​​用​​​​​​​反​​​​​​​斜​​​​​​​线​​​​​​​来​​​​​​​换​​​​​​​行​​​​​​​。​​​​​​​
    • 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= --netmask= \
      --gateway= --nameserver,
  • --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 (optional)
multipath --name= --device= --rule=
part or partition (required for installs, ignored for upgrades)
如​​​​​​​果​​​​​​​不​​​​​​​同​​​​​​​分​​​​​​​区​​​​​​​里​​​​​​​有​​​​​​​多​​​​​​​个​​​​​​​Red Hat Enterprise Linux系​​​​​​​统​​​​​​​,安​​​​​​​装​​​​​​​程​​​​​​​序​​​​​​​会​​​​​​​提​​​​​​​示​​​​​​​用​​​​​​​户​​​​​​​升​​​​​​​级​​​​​​​哪​​​​​​​个​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​


作​​​​​​​为​​​​​​​安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​的​​​​​​​一​​​​​​​部​​​​​​​分​​​​​​​,所​​​​​​​有​​​​​​​被​​​​​​​创​​​​​​​建​​​​​​​的​​​​​​​分​​​​​​​区​​​​​​​都​​​​​​​会​​​​​​​被​​​​​​​格​​​​​​​式​​​​​​​化​​​​​​​,除​​​​​​​非​​​​​​​使​​​​​​​用​​​​​​​了​​​​​​​ --noformat 和​​​​​​​ --onpart。​​​​​​​
  • <mntpoint> — The <mntpoint> is where the partition is mounted and must be of one of the following forms:
    • /<path>
    • swap
      要​​​​​​​自​​​​​​​动​​​​​​​决​​​​​​​定​​​​​​​交​​​​​​​换​​​​​​​分​​​​​​​区​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​,使​​​​​​​用​​​​​​​ --recommended 选​​​​​​​项​​​​​​​:
      swap --recommended
    • 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.
  • --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 ext2, ext3, swap, and vfat.
  • --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.


如​​​​​​​果​​​​​​​因​​​​​​​为​​​​​​​某​​​​​​​种​​​​​​​原​​​​​​​因​​​​​​​分​​​​​​​区​​​​​​​失​​​​​​​败​​​​​​​了​​​​​​​,虚​​​​​​​拟​​​​​​​终​​​​​​​端​​​​​​​ 3 上​​​​​​​会​​​​​​​显​​​​​​​示​​​​​​​诊​​​​​​​断​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​
poweroff (optional)
在​​​​​​​安​​​​​​​装​​​​​​​成​​​​​​​功​​​​​​​后​​​​​​​关​​​​​​​闭​​​​​​​系​​​​​​​统​​​​​​​并​​​​​​​断​​​​​​​电​​​​​​​。​​​​​​​通​​​​​​​常​​​​​​​,在​​​​​​​手​​​​​​​工​​​​​​​安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​中​​​​​​​,anaconda 会​​​​​​​显​​​​​​​示​​​​​​​一​​​​​​​条​​​​​​​信​​​​​​​息​​​​​​​并​​​​​​​等​​​​​​​待​​​​​​​用​​​​​​​户​​​​​​​按​​​​​​​任​​​​​​​意​​​​​​​键​​​​​​​来​​​​​​​重​​​​​​​新​​​​​​​启​​​​​​​动​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​在​​​​​​​ kickstart 的​​​​​​​安​​​​​​​装​​​​​​​过​​​​​​​程​​​​​​​中​​​​​​​,如​​​​​​​果​​​​​​​没​​​​​​​有​​​​​​​指​​​​​​​定​​​​​​​完​​​​​​​成​​​​​​​方​​​​​​​法​​​​​​​,将​​​​​​​使​​​​​​​用​​​​​​​缺​​​​​​​省​​​​​​​的​​​​​​​ reboot 选​​​​​​​项​​​​​​​。​​​​​​​
poweroff 选​​​​​​​项​​​​​​​和​​​​​​​ shutdown -p 基​​​​​​​本​​​​​​​相​​​​​​​同​​​​​​​。​​​​​​​


The poweroff option is highly dependent on the system hardware in use. Specifically, certain hardware components such as the BIOS, APM (advanced power management), and ACPI (advanced configuration and power interface) must be able to interact with the system kernel. Contact your manufacturer for more information on you system's APM/ACPI abilities.
关​​​​​​​于​​​​​​​其​​​​​​​他​​​​​​​的​​​​​​​完​​​​​​​成​​​​​​​方​​​​​​​法​​​​​​​,请​​​​​​​参​​​​​​​考​​​​​​​ halt、​​​​​​​reboot 和​​​​​​​ shutdown kickstart 选​​​​​​​项​​​​​​​。​​​​​​​
raid (optional)
组​​​​​​​成​​​​​​​软​​​​​​​件​​​​​​​ 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 ext2, ext3, swap, and vfat.
  • --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.
下​​​​​​​面​​​​​​​的​​​​​​​例​​​​​​​子​​​​​​​展​​​​​​​示​​​​​​​了​​​​​​​假​​​​​​​定​​​​​​​系​​​​​​​统​​​​​​​里​​​​​​​有​​​​​​​三​​​​​​​个​​​​​​​ 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 (optional)
在​​​​​​​成​​​​​​​功​​​​​​​完​​​​​​​成​​​​​​​安​​​​​​​装​​​​​​​(没​​​​​​​有​​​​​​​参​​​​​​​数​​​​​​​)后​​​​​​​重​​​​​​​新​​​​​​​启​​​​​​​动​​​​​​​。​​​​​​​通​​​​​​​常​​​​​​​,kickstart 会​​​​​​​显​​​​​​​示​​​​​​​信​​​​​​​息​​​​​​​并​​​​​​​等​​​​​​​待​​​​​​​用​​​​​​​户​​​​​​​按​​​​​​​任​​​​​​​意​​​​​​​键​​​​​​​来​​​​​​​重​​​​​​​新​​​​​​​启​​​​​​​动​​​​​​​系​​​​​​​统​​​​​​​。​​​​​​​
reboot 选​​​​​​​项​​​​​​​基​​​​​​​本​​​​​​​和​​​​​​​ shutdown -r 命​​​​​​​令​​​​​​​相​​​​​​​同​​​​​​​。​​​​​​​


使​​​​​​​用​​​​​​​ reboot 选​​​​​​​项​​​​​​​可​​​​​​​能​​​​​​​会​​​​​​​导​​​​​​​致​​​​​​​安​​​​​​​装​​​​​​​的​​​​​​​死​​​​​​​循​​​​​​​环​​​​​​​,这​​​​​​​依​​​​​​​赖​​​​​​​于​​​​​​​安​​​​​​​装​​​​​​​介​​​​​​​质​​​​​​​和​​​​​​​方​​​​​​​法​​​​​​​。​​​​​​​
如​​​​​​​果​​​​​​​在​​​​​​​ kickstart 文​​​​​​​件​​​​​​​里​​​​​​​没​​​​​​​有​​​​​​​显​​​​​​​性​​​​​​​地​​​​​​​指​​​​​​​定​​​​​​​其​​​​​​​他​​​​​​​方​​​​​​​法​​​​​​​的​​​​​​​话​​​​​​​,reboot 选​​​​​​​项​​​​​​​是​​​​​​​缺​​​​​​​省​​​​​​​的​​​​​​​完​​​​​​​成​​​​​​​方​​​​​​​法​​​​​​​。​​​​​​​
关​​​​​​​于​​​​​​​其​​​​​​​他​​​​​​​的​​​​​​​完​​​​​​​成​​​​​​​方​​​​​​​法​​​​​​​,请​​​​​​​参​​​​​​​考​​​​​​​ halt、​​​​​​​poweroff 和​​​​​​​ shutdown kickstart 选​​​​​​​项​​​​​​​。​​​​​​​
repo (optional)
配​​​​​​​置​​​​​​​用​​​​​​​于​​​​​​​软​​​​​​​件​​​​​​​包​​​​​​​安​​​​​​​装​​​​​​​来​​​​​​​源​​​​​​​的​​​​​​​额​​​​​​​外​​​​​​​的​​​​​​​ 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.
Sets the system's root password to the <password> argument.
rootpw [--iscrypted] <password>
  • --iscrypted — If this is present, the password argument is assumed to already be encrypted.
Sets the state of SELinux on the installed system. SELinux defaults to enforcing in anaconda.
selinux [--disabled|--enforcing|--permissive]
  • --enforcing — Enables SELinux with the default targeted policy being enforced.


    如​​​​​​​果​​​​​​​ 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.
关​​​​​​​于​​​​​​​Red Hat Enterprise Linux里​​​​​​​的​​​​​​​ SELinux 的​​​​​​​完​​​​​​​整​​​​​​​信​​​​​​​息​​​​​​​,请​​​​​​​参​​​​​​​阅​​​​​​​《​​​​​​​Red Hat Enterprise Linux Deployment Guide》​​​​​​​。​​​​​​​
Modifies the default set of services that will run under the default runlevel. The services listed in the disabled list will be disabled before the services listed in the enabled list are enabled.
  • --disabled — Disable the services given in the comma separated list.
  • --enabled — Enable the services given in the comma separated list.
Shut down the system after the installation has successfully completed. During a kickstart installation, if no completion method is specified, the reboot option is used as default.
shutdown 选​​​​​​​项​​​​​​​和​​​​​​​ shutdown 命​​​​​​​令​​​​​​​大​​​​​​​体​​​​​​​相​​​​​​​同​​​​​​​。​​​​​​​
关​​​​​​​于​​​​​​​其​​​​​​​他​​​​​​​的​​​​​​​完​​​​​​​成​​​​​​​方​​​​​​​法​​​​​​​,请​​​​​​​参​​​​​​​考​​​​​​​ halt、​​​​​​​poweroff 和​​​​​​​ reboot kickstart 选​​​​​​​项​​​​​​​。​​​​​​​
If present, X is not configured on the installed system.
Perform the kickstart installation in text mode. Kickstart installations are performed in graphical mode by default.
Sets the system time zone to <timezone> which may be any of the time zones listed by timeconfig.
timezone [--utc] <timezone>
  • --utc — If present, the system assumes the hardware clock is set to UTC (Greenwich Mean) time.
Tells the system to upgrade an existing system rather than install a fresh system. You must specify one of cdrom, harddrive, nfs, or url (for FTP and HTTP) as the location of the installation tree. Refer to install for details.
Creates a new user on the system.
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.
Allows the graphical installation to be viewed remotely via VNC. This method is usually preferred over text mode, as there are some size and language limitations in text installs. With no options, this command will start a VNC server on the machine with no password and will print out the command that needs to be run to connect a remote machine.
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.
Use to create a Logical Volume Management (LVM) group with the syntax:
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
Configures the X Window System. If this option is not given, the user must configure X manually during the installation, if X was installed; this option should not be used if X is not installed on the final system.
  • --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.
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 in previous versions of Red Hat Enterprise Linux, this command was specified as zerombr yes. This form is now deprecated; you should now simply specify zerombr in your kickstart file instead.
Define a Fiber channel device (IBM System z).
zfcp [--devnum=<devnum>] [--fcplun=<fcplun>] [--scsiid=<scsiid>] [--scsilun=<scsilun>] [--wwpn=<wwpn>]
%include (optional)
Use the %include /path/to/file command to include the contents of another file in the kickstart file as though the contents were at the location of the %include command in the kickstart file.

28.4.1. 高​​​​​​​级​​​​​​​的​​​​​​​分​​​​​​​区​​​​​​​示​​​​​​​例​​​​​​​

下​​​​​​​面​​​​​​​是​​​​​​​一​​​​​​​个​​​​​​​简​​​​​​​单​​​​​​​的​​​​​​​、​​​​​​​集​​​​​​​成​​​​​​​的​​​​​​​示​​​​​​​例​​​​​​​,它​​​​​​​展​​​​​​​示​​​​​​​了​​​​​​​ clearpart、​​​​​​​raidpart、​​​​​​​ volgroup 和​​​​​​​ logvol 等​​​​​​​ kickstart 选​​​​​​​项​​​​​​​:
clearpart --drives=hda,hdc --initlabel  
# Raid 1 IDE config 
part raid.11    --size 1000     --asprimary     --ondrive=hda 
part raid.12    --size 1000     --asprimary     --ondrive=hda 
part raid.13    --size 2000     --asprimary     --ondrive=hda 
part raid.14    --size 8000                     --ondrive=hda 
part raid.15    --size 1 --grow                 --ondrive=hda             
part raid.21    --size 1000     --asprimary     --ondrive=hdc 
part raid.22    --size 1000     --asprimary     --ondrive=hdc 
part raid.23    --size 2000     --asprimary     --ondrive=hdc 
part raid.24    --size 8000                     --ondrive=hdc 
part raid.25    --size 1 --grow                 --ondrive=hdc  

# You can add --spares=x  
raid /          --fstype ext3 --device md0 --level=RAID1 raid.11 raid.21 
raid /safe      --fstype ext3 --device md1 --level=RAID1 raid.12 raid.22 
raid swap       --fstype swap --device md2 --level=RAID1 raid.13 raid.23 
raid /usr       --fstype ext3 --device md3 --level=RAID1 raid.14 raid.24 
raid pv.01      --fstype ext3 --device md4 --level=RAID1 raid.15 raid.25  

# LVM configuration so that we can resize /var and /usr/local later 
volgroup sysvg pv.01     
logvol /var             --vgname=sysvg  --size=8000     --name=var 
logvol /var/freespace   --vgname=sysvg  --size=8000     --name=freespacetouse 
logvol /usr/local       --vgname=sysvg  --size=1 --grow --name=usrlocal
这​​​​​​​个​​​​​​​高​​​​​​​级​​​​​​​示​​​​​​​例​​​​​​​实​​​​​​​现​​​​​​​了​​​​​​​ RAID 上​​​​​​​的​​​​​​​ LVM,以​​​​​​​及​​​​​​​根​​​​​​​据​​​​​​​以​​​​​​​后​​​​​​​的​​​​​​​需​​​​​​​要​​​​​​​重​​​​​​​新​​​​​​​调​​​​​​​整​​​​​​​不​​​​​​​同​​​​​​​目​​​​​​​录​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​的​​​​​​​能​​​​​​​力​​​​​​​。​​​​​​​