28.4. Параметры кикстарта

28.4. Параметры кикстарта

28.4. Параметры кикстарта

Ниже приведены параметры, которые могут использоваться в файле кикстарта.Если вы желаете создать файл с помощью графического интерфейса, воспользуйтесь программой Настройка кикстарта (см. Глава 29, Настройка кикстарта).

Замечание

Если за параметром указан знак равенства (=), после него должно быть указано значение. В приведенных примерах команд параметры, указанные в скобках ([ ]) являются необязательными.

autopart (необязательный)

Включает автоматическое создание разделов: корневой раздел (/) размером 1 Гб или более, раздел подкачки и загрузочный раздел, подходящий для вашей архитектуры. Переопределить размеры разделов по умолчанию можно с помощью указания директивы part.

ignoredisk (необязательный)

Заставляет установщик пропускать заданные диски. Это, в частности, может пригодиться, если вы выполняете автоматическое разбиение на разделы и хотите, чтобы отдельные диски были опущены. К примеру, попытка реализации кластера SAN без ignoredisk вызовет сбой кикстарта вследствие того, что установщик находит пассивные пути к SAN, которые не возвращают таблицы разбиения.

Параметр ignoredisk может пригодиться в случае, если существует несколько путей к дискам.

Формат:

ignoredisk --drives=диск1,диск2,...

где дискN может принимать значения sda, sdb,..., hda,... и т.п.

autostep (необязательный)

Похож на параметр interactive за исключением того, что переход к следующему экрану происходит автоматически. Используется в основном для отладки.

  • --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 (обязательный)

Определяет в системе параметры проверки подлинности. Параметр похож на команду системы authconfig, которую можно запустить после установки. По умолчанию пароли шифруются стандартно и не помещаются в тень.

  • --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.

    Подсказка

    Чтобы найти информацию о пользователе "jim", библиотека Hesiod ищет jim.passwd<LHS><RHS>, а в результате рассчитывает получить запись TXT, похожую на запись в файле passwd (jim:*:501:501:Jungle Jim:/home/jim:/bin/bash). Запрос для групп составляется аналогично, с небольшим изменением: jim.group<LHS><RHS>.

    Поиск пользователей и групп по уникальному номеру выполняется с помощью псевдонима CNAME "501.uid" для записи "jim.passwd" и "501.gid" для "jim.group". Обратите внимание, библиотека при определении имени не помещает точку . перед 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 (обязательный)

Определяет, как должен устанавливаться загрузчик GRUB. Этот параметр требуется и при установке, и при обновлении.

  • --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 (необязательный)

Удаляет разделы на диске, прежде чем создавать новые. По умолчанию разделы не удаляются.

Замечание

Если используется команда 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 (необязательный)

Выполняет установку в полностью неинтерактивном режиме командной строки. Любой запрос взаимодействия приводит к прекращению установки. Этот режим полезен для платформ System z с консолью x3270.

device (необязательный)

В большинстве компьютеров с шиной PCI программа установки автоматически корректно определяет Ethernet и SCSI-платы. На старых компьютерах и в некоторых конфигурациях PCI, тем не менее, кикстарт-установке потребуется помощь при определении соответствующих устройств. Команда device, указывающая программе установки подключить дополнительные модули, выглядит следующим образом:

device <тип><имя_модуля> --opts=<параметры>
  • <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 (необязательный)

Во время кикстарт-установки могут быть использованы дискеты с драйверами. Вы должны скопировать содержимое дискет с драйверами в корневой каталог раздела на жестком диске компьютера. Затем с помощью команды driverdisk укажите программе установки, где находится диск с драйверами.

driverdisk <раздел> [--type=<тип_ФС>]

Также можно указать сетевое расположение дискеты с драйверами:

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=] <устройство> [--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 выводит сообщение и ждет, пока пользователь не нажмет клавишу, и только затем перегружает компьютер. Если при кикстарт-установке не указан метод завершения, по умолчанию выбирается режим reboot.

Параметр halt примерно соответствует команде shutdown -h.

Чтобы узнать о других методах завершения, обратитесь к параметрам кикстарта — poweroff, reboot и shutdown.

graphical (необязательный)

Выполняет кикстарт-установку в графическом режиме. Используется по умолчанию.

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.

    • --biospart=

      BIOS раздел, с которого будет выполнена установка (например, 82).

    • --partition=

      Раздел, в котором находится каталог установки (например, sdb2).

    • --dir=

      Каталог, содержащий подкаталог модели дерева установки.

    Например:

    harddrive --partition=hdb2 --dir=/tmp/install-tree
  • nfs — Install from the NFS server specified.

    • --server=

      Сервер, содержащий установочные файлы (имя узла или IP-адрес).

    • --dir=

      Каталог, содержащий подкаталог модели дерева установки.

    • --opts=

      Параметры подключения, используемые при монтировании экспорта NFS (необязательны)

    Например:

    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://<сервер>/<dir>

    или:

    url --url ftp://<пользователь>:<пароль>@<сервер>/<папка>
ignore disk (необязательный)

Определяет диски, которые Anaconda не будет использовать при разбиении на разделы, форматировании и очистке. Команда принимает один аргумент, который представляет собой список игнорируемых дисков, разделенных запятыми.

ignoredisk --drives=[диск1,диск2,...]
interactive (необязательный)

Использует во время установки информацию, определенную в файле кикстарта, но допускает проверку и изменение заданных значений. В каждом диалоге программы установки вы будете наблюдать значения, полученные из файла кикстарта. Вы можете либо согласиться с этими значениями, нажав Далее, либо изменить их и нажать Далее для продолжения. Обратитесь к описанию команды autostep.

iscsi (необязательный)

issci --ipaddr= [параметры].

  • --target

  • --port=

  • --user=

  • --password=

iscsiname (необязательный)

key (необязательный)

Принимает код установки, который в системах Red Hat Enterprise Linux необходим для выбора пакетов и обеспечения поддержки. Эта команда не имеет силы для Fedora и будет проигнорирована.

  • --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.

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 (обязательный)

Определяет язык, используемый во время установки. Например, для установки на английском файл кикстарта должен содержать строку:

lang en_US

Список допустимых кодов языков приведен в файле /usr/share/system-config-language/locale-list (в первом столбце каждой строки), содержащемся в пакете system-config-language.

Некоторые языки, в частности, китайский, японский, корейский и языки индийской группы, не поддерживаются текстовой установкой. Если один из перечисленных языков задан с помощью команды "lang", то установка будет продолжена на английском, несмотря на то, что указанный язык будет использоваться позднее в качестве языка системы.

langsupport (устаревшее)

Ключевое слово "langsupport" считается устаревшим и его использование приведет к отображению сообщения об ошибке и выходу из программы установки. Используйте перечень поддерживаемых групп пакетов поддерживаемых языков в секции %packages файла кикстарта. Например, чтобы добавить поддержку французского языка, в секцию %packages добавьте:

@french-support
logvol (необязательный)

Создает логический том для системы управления логическими томами (Logical Volume Management, LVM). Формат команды:

logvol <точка_монтирования> --vgname=<имя> --size=<размер> --name=<имя><параметры>

Используемые параметры:

  • --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= — Sets the file system type for the logical volume. Valid values are ext2, ext3, swap, and vfat.

  • --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 выполнит проверку установочных носителей. По умолчанию проверка отключена.

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 (устаревший)

Ключевое слово «mouse» является устаревшим.

network (необязательный)

Определяет сетевую настройку компьютера. Если кикстарт-установка не использует сеть (другими словами, установка выполняется не по FTP, HTTP или NFS), сеть не настраивается. Если сеть необходима для установки, но информация о настройке сети отсутствует в файле кикстарта, программа установки предполагает, что установка может быть выполнена через интерфейс eth0 с динамическим IP-адресом (BOOTP/DHCP), и настраивает установленную систему на использование динамического IP-адреса. Параметр network определяет сетевые настройки для сетевой кикстарт-установки, а также для уже установленной системы.

  • --bootproto= — One of dhcp, bootp, or static.

    По умолчанию выбран режим dhcp. Параметры bootp и dhcp работают одинаково.

    В режиме DHCP для получения сетевой конфигурации используется DHCP-сервер. Как вы могли догадаться, в случае с BOOTP для получения сетевых настроек подобным образом используется сервер BOOTP. Чтобы настроить компьютер на использование DHCP, укажите:

    network --bootproto=dhcp

    Чтобы настроить компьютер на получение сетевой конфигурации с помощью BOOTP, добавьте в файл кикстарта строку:

    network --bootproto=bootp

    В случае статической конфигурации вы должны определить в файле кикстарта все необходимые сетевые параметры. Как и следует из имени, эти параметры являются статическими и используются как во время, так и после установки. Строка для статической настройки выглядит более сложной, так как вы должны задать все сетевые параметры в одной строке. Необходимо указать IP-адрес, маску сети, шлюз и сервер имен. Например (обратный слэш показывает, что строка разбита на две исключительно для удобства представления):

    network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0 \
    --gateway=10.0.2.254 --nameserver=10.0.2.1
    

    Если вы используете статическую настройку, учтите следующее:

    • Вся информация о статической конфигурации должна быть задана в одной строке; вы не можете перенести ее на другую строку, например, с помощью обратной косой черты.

    • Здесь вы можете указать только один сервер имен. Дополнительные сервера имен могут быть определены в секции %post (см. Раздел 28.7, «Сценарий, выполняемый после установки»).

  • --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 (обязательный при установке, при обновлении игнорируется)

Создает в системе раздел.

Если Red Hat Enterprise Linux уже установлена на компьютере в нескольких разделах, программа установки спрашивает у пользователя, какую именно установку следует обновить.

Предупреждение

Все созданные разделы форматируются в процессе установки, если только не используются параметры --noformat и --onpart.

Подробный пример действия part может быть найден в Раздел 28.4.1, «Пример сложного разбиения».

  • <mntpoint> — The <mntpoint> is where the partition is mounted and must be of one of the following forms:

    • /<путь>

      Например, /, /usr, /home

    • swap

      Раздел используется в качестве раздела подкачки.

      Чтобы размер раздела подкачки был выбран автоматически, воспользуйтесь параметром --recommended.

      swap --recommended

      Минимальный размер автоматически создаваемого раздела подкачки должен быть не меньше объема ОЗУ компьютера и не больше чем удвоенный объем ОЗУ.

    • raid.<id>

      Раздел используется в программном 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 (необязательный)

После установки завершает работу системы и отключает питание компьютера. Обычно при установке вручную Anaconda выводит на экран сообщение и ждет нажатия клавиши для перезагрузки. Если при кикстарт-установке не указан метод завершения, по умолчанию выбирается режим reboot.

Параметр poweroff примерно соответствует команде shutdown -p.

Замечание

Параметр poweroff сильно зависит от оборудования компьютера. Чтобы он работал, определенные компоненты системы, в частности BIOS, система расширенного управления питанием (Advanced Power Management, APM) и расширенный интерфейс настройки и управления питанием (Advanced Configuration and Power Interface, ACPI) должны правильно взаимодействовать с ядром системы. Больше о возможностях APM/ACPI своего компьютера вы можете узнать у производителя компьютера.

Чтобы узнать о других методах завершения, обратитесь к параметрам кикстарта halt, reboot и shutdown.

raid (необязательный)

Собирает программный RAID-массив. Формат:

raid <точка_подключения> --level=<уровень> --device=<mdN><разделы*>
  • <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 md7, 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.

В следующем примере показано, как создать корневой раздел /, используя RAID-массив уровня 1, и раздел /usr, используя RAID-массив уровня 5. При этом предполагается, что в компьютере установлено три SCSI-диска. Также будут созданы три раздела подкачки, каждый на отдельном диске.

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

Подробный пример действия raid рассматривается в Раздел 28.4.1, «Пример сложного разбиения».

reboot (необязательный)

Перезагружает компьютер после успешного завершения установки (без аргументов). Обычно Anaconda выводит на экран сообщение и ждет нажатия клавиши для перезагрузки.

Параметр reboot примерно соответствует команде shutdown -r.

Замечание

Использование параметра reboot может привести к бесконечному зацикливанию установки в зависимости от выбранного носителя и способа установки.

Если в файле кикстарта явно не указаны режимы завершения, используется параметр reboot.

Чтобы узнать о других методах завершения, обратитесь к параметрам кикстарта halt, poweroff и shutdown.

repo (необязательный)

Задает дополнительные хранилища yum, которые могут использоваться в качестве источников для установки пакетов. Возможно указание нескольких строк хранилищ.

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 (обязательный)

Определяет для пользователя root пароль <пароль>.

rootpw [--iscrypted] <пароль>
  • --iscrypted — If this is present, the password argument is assumed to already be encrypted.

selinux (необязательный)

Устанавливает режим SELinux в соответствии со следующими аргументами (по умолчанию в Anaconda используется принудительный режим):

selinux [--disabled|--enforcing|--permissive]
  • --enforcing — Enables SELinux with the default targeted policy being enforced.

    Замечание

    Если параметр 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.

Полную информацию о SELinux в Red Hat Enterprise Linux можно найти в Руководстве по развертыванию Red Hat Enterprise Linux.

services (необязательный)

Изменяет стандартный набор сервисов, выполняющихся на текущем уровне выполнения. Перечисленные сервисы в списке отключений будут отключены до активации сервисов, заданных в списке подключения.

  • --disabled — Disable the services given in the comma separated list.

  • --enabled — Enable the services given in the comma separated list.

shutdown (необязательный)

Выключает компьютер после успешного завершения установки. Если при кикстарт-установке не указан метод завершения, по умолчанию выбирается режим reboot.

Параметр shutdown примерно соответствует команде shutdown.

Чтобы узнать о других методах завершения, обратитесь к параметрам кикстарта halt, poweroff и reboot.

skipx (необязательный)

Если присутствует, система X Window в устанавливаемой системе не настраивается.

text (необязательный)

Кикстарт-установка выполняется в текстовом режиме (по умолчанию выполняется в графическом режиме).

timezone (обязательный)

Определяет часовой пояс <timezone> (аргумент может быть одним из приведенных в timeconfig).

timezone [--utc] <часовой_пояс>
  • --utc — If present, the system assumes the hardware clock is set to UTC (Greenwich Mean) time.

upgrade (необязательный)

Указывает системе выполнить обновление, а не новую установку. В качестве размещения дерева каталогов установки вы должны указать cdrom, harddrive, nfs или url (при использовании FTP или HTTP). Подробнее об этом рассказывается в описании параметра install.

user (необязательный)

Создает нового пользователя в системе.

user --name=<имя_пользователя> [--groups=<список>] [--homedir=<папка>] [--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. Этот метод более предпочтителен по сравнению с текстовым режимом установки, поскольку при текстовой установке существуют определенные ограничения (например, языковые и пр.). Если параметры не заданы, данная команда запустит VNC-сервер на машине без пароля и выведет команду, необходимую для подключения к удаленному компьютеру.

vnc [--host=<узел>] [--port=<порт>] [--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 (необязательный)

Используется для создания группы системы управления логическими томами (Logical Volume Management, LVM) следующим образом:

volgroup <имя><раздел><параметры>

Используемые параметры:

  • --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

Подробный пример действия volgroup вы найдете в Раздел 28.4.1, «Пример сложного разбиения».

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 (необязательный)

Если указан параметр zerombr, все неправильные таблицы разделов, обнаруженные на дисках, будут очищены. Это приведет к потере всех данных, расположенных на дисках с этими таблицами.

zfcp (необязательный)

Определение устройства оптического канала (IBM System z).

zfcp [--devnum=<номер_устройства>] [--fcplun=<fcplun>] [--scsiid=<scsiid>] [--scsilun=<scsilun>] [--wwpn=<wwpn>]

%include (необязательный)

Используйте команду %include /путь/к/файлу, чтобы включить в файл кикстарта содержимое другого файла, как если бы содержимое было непосредственно было вставлено в файл вместо команды %include.