Show Table of Contents
2.2.2. Kickstart
This section describes what behaviors have changed in automated installations (Kickstart).
2.2.2.1. Behavioral Changes
- Previously, a Kickstart file that did not have a
networkline resulted in the assumption that DHCP is used to configure the network. This was inconsistent with the rest of Kickstart in that all other missing lines mean installation will halt and prompt for input. Now, having nonetworkline means that installation will halt and prompt for input if network access is required. If you want to continue using DHCP without interruption, addnetwork --bootproto=dhcpto your Kickstart file. Also, the--bootproto=queryoption is deprecated. If you want to prompt for network configuration in the first stage of installation, use theasknetworkoption. - In previous versions of Red Hat Enterprise Linux, the
next-serverDHCP option was used to specify an NFS server containing Kickstart files when theksoption is passed to the system without a value. This DHCP option has changed toserver-namein Red Hat Enterprise Linux 6. - Traditionally, disks have been referred to throughout Kickstart by a device node name (such as
sda). The Linux kernel has moved to a more dynamic method where device names are not guaranteed to be consistent across reboots, so this can complicate usage in Kickstart scripts. To accommodate stable device naming, you can use any item from/dev/diskin place of a device node name. For example, instead of:part / --fstype=ext4 --onpart=sda1
You could use an entry similar to one of the following:part / --fstype=ext4 --onpart=/dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:0-part1 part / --fstype=ext4 --onpart=/dev/disk/by-id/ata-ST3160815AS_6RA0C882-part1
This provides a consistent way to refer to disks that is more meaningful than justsda. This is especially useful in large storage environments. - You can also use shell-like entries to refer to multiple disks. This is primarily intended to make it easier to use the
clearpartandignorediskcommands in large storage environments. For example, instead of:ignoredisk --drives=sdaa,sdab,sdac
You could use an entry similar to the following:ignoredisk --drives=/dev/disk/by-path/pci-0000:00:05.0-scsi-*
- Kickstart will halt with an error in more cases than previous versions. For example, if you refer to a disk that does not exist, the installation will halt and inform you of the error. This is designed to help detect errors in Kickstart files before they lead to larger problems. As a side-effect, files that are designed to be generic across different machine configurations can fail more frequently. These must be dealt with on a case-by-case basis.
- The
/tmp/netinfofile used for Kickstart network information has been removed. Anaconda now uses NetworkManager for interface configuration by default, and stores configuration in the ifcfg files in/etc/sysconfig/network-scripts/. It is possible to use this new location as a source of network settings for%preand%postscripts.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.