Installation guide

Figure 29.15. 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.
To specify a scripting language to use to execute the script, select the Use an interpreter op-
tion and enter the interpreter in the text box beside it. For example, /usr/bin/python2.4 can be
specified for a Python script. This option corresponds to using %pre --interpreter /
usr/bin/python2.4 in your kickstart file.
Many of the commands that are available in the pre-installation environment are provided by a
version of busybox called busybox-anaconda. Busybox-supplied commands do not provide
all features, but supply only the most commonly used features. The following list of available
commands include commands provided by busybox:
addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bbconfig, bunzip2, busybox,
bzcat, cal, cat, catv, chattr, chgrp, chmod, chown, chroot, chvt, cksum, clear, cmp,
comm, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, devfsd,
df, diff, dirname, dmesg, dnsd, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases,
e2fsck, e2label, echo, ed, egrep, eject, env, ether-wake, expr, fakeidentd, false, fb-
set, fdflush, fdformat, fdisk, fgrep, find, findfs, fold, free, freeramdisk, fsck,
fsck.ext2, fsck.ext3, fsck.minix, ftpget, ftpput, fuser, getopt, getty, grep, gunzip,
gzip, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, if-
down, ifup, inetd, insmod, install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute,
iptunnel, kill, killall, lash, last, length, less, linux32, linux64, ln, load_policy,
loadfont, loadkmap, login, logname, losetup, ls, lsattr, lsmod, lzmacat, makedevs,
10. Pre-Installation Script
293