Installation guide
Fig u re 32.15. Pre- In st allat io n Scrip t
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 option
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 b u sybo x called b u syb ox- an aco nd a. Bu sybo x-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 bu syb o x:
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, fbset, 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, ifdown, 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, md5sum, mdev, mesg, mkdir, mke2fs, mkfifo, mkfs.ext2, mkfs.ext3, mkfs.minix,
mknod, mkswap, mktemp, modprobe, more, mount, mountpoint, msh, mt, mv, nameif, nc,
Red Hat Ent erprise Linux 5 Inst allat ion G uide
334