Product SiteDocumentation Site

16.10. Pre-Installation Script

Pre-Installation Script
Pre-Installation Script for Kickstart
図16.13 Pre-Installation Script

You can add commands to run on the system immediately after the kickstart file has been parsed and before the installation begins. If you have configured the network in the kickstart file, the network is enabled before this section is processed. To include a pre-installation script, type it in the text area.
スクリプトを実行するのに使用するスクリプト言語を指定するには、 インタプリタを使う オプションを選択して、その横のテキストボックスに インタプリタを記入します。例えば、Python スクリプトには /usr/bin/python2.6 を指定します。このオプションは、キックスタートファイル内で %pre --interpreter /usr/bin/python2.6 を使用することに相当します。
arping, awk, basename, bash, bunzip2, bzcat, cat, chattr, chgrp, chmod, chown, chroot, chvt, clear, cp, cpio, cut, date, dd, df, dirname, dmesg, du, e2fsck, e2label, echo, egrep, eject, env, expr, false, fdisk, fgrep, find, fsck, fsck.ext2, fsck.ext3, ftp, grep, gunzip, gzip, hdparm, head, hostname, hwclock, ifconfig, insmod, ip, ipcalc, kill, killall, less, ln, load_policy, login, losetup, ls, lsattr, lsmod, lvm, md5sum, mkdir, mke2fs, mkfs.ext2, mkfs.ext3, mknod, mkswap, mktemp, modprobe, more, mount, mt, mv, nslookup, openvt, pidof, ping, ps, pwd, readlink, rm, rmdir, rmmod, route, rpm, sed, sh, sha1sum, sleep, sort, swapoff, swapon, sync, tail, tar, tee, top, touch, true, tune2fs, umount, uniq, vconfig, vi, wc, wget, xargs, zcat.


Do not include the %pre command. It is added for you.


The pre-installation script is run after the source media is mounted and stage 2 of the bootloader has been loaded. For this reason it is not possible to change the source media in the pre-installation script.