Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

29.10. 前​​​​​​​置​​​​​​​安​​​​​​​裝​​​​​​​程​​​​​​​式​​​​​​​碼​​​​​​​

前​​​​​​​置​​​​​​​安​​​​​​​裝​​​​​​​程​​​​​​​式​​​​​​​碼​​​​​​​

圖形 29.15. 前​​​​​​​置​​​​​​​安​​​​​​​裝​​​​​​​程​​​​​​​式​​​​​​​碼​​​​​​​

在​​​​​​​解​​​​​​​析​​​​​​​ kickstart 檔​​​​​​​案​​​​​​​之​​​​​​​後​​​​​​​與​​​​​​​開​​​​​​​始​​​​​​​安​​​​​​​裝​​​​​​​之​​​​​​​前​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​增​​​​​​​加​​​​​​​要​​​​​​​在​​​​​​​系​​​​​​​統​​​​​​​上​​​​​​​立​​​​​​​即​​​​​​​執​​​​​​​行​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​您​​​​​​​在​​​​​​​ kickstart 檔​​​​​​​案​​​​​​​中​​​​​​​有​​​​​​​設​​​​​​​定​​​​​​​網​​​​​​​路​​​​​​​資​​​​​​​訊​​​​​​​,在​​​​​​​處​​​​​​​理​​​​​​​這​​​​​​​個​​​​​​​部​​​​​​​份​​​​​​​之​​​​​​​前​​​​​​​便​​​​​​​已​​​​​​​經​​​​​​​啟​​​​​​​動​​​​​​​網​​​​​​​路​​​​​​​了​​​​​​​。​​​​​​​如​​​​​​​要​​​​​​​加​​​​​​​入​​​​​​​一​​​​​​​個​​​​​​​前​​​​​​​置​​​​​​​安​​​​​​​裝​​​​​​​的​​​​​​​程​​​​​​​式​​​​​​​碼​​​​​​​,請​​​​​​​在​​​​​​​文​​​​​​​字​​​​​​​區​​​​​​​域​​​​​​​輸​​​​​​​入​​​​​​​。​​​​​​​
指​​​​​​​定​​​​​​​一​​​​​​​個​​​​​​​用​​​​​​​來​​​​​​​執​​​​​​​行​​​​​​​ script 的​​​​​​​語​​​​​​​言​​​​​​​,請​​​​​​​選​​​​​​​取​​​​​​​ 使​​​​​​​用​​​​​​​直​​​​​​​譯​​​​​​​器​​​​​​​ 選​​​​​​​項​​​​​​​來​​​​​​​進​​​​​​​入​​​​​​​文​​​​​​​字​​​​​​​方​​​​​​​塊​​​​​​​旁​​​​​​​邊​​​​​​​的​​​​​​​直​​​​​​​譯​​​​​​​器​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​ /usr/bin/python2.4 可​​​​​​​用​​​​​​​來​​​​​​​指​​​​​​​定​​​​​​​一​​​​​​​個​​​​​​​ Python script。​​​​​​​這​​​​​​​個​​​​​​​選​​​​​​​項​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​ kickstart 檔​​​​​​​案​​​​​​​中​​​​​​​與​​​​​​​ %pre --interpreter /usr/bin/python2.4 一​​​​​​​起​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​
許​​​​​​​多​​​​​​​能​​​​​​​在​​​​​​​安​​​​​​​裝​​​​​​​前​​​​​​​環​​​​​​​境​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​,這​​​​​​​些​​​​​​​指​​​​​​​令​​​​​​​由​​​​​​​一​​​​​​​個​​​​​​​版​​​​​​​本​​​​​​​ busybox 叫​​​​​​​ busybox-anaconda 提​​​​​​​供​​​​​​​。​​​​​​​由​​​​​​​ Busybox 支​​​​​​​援​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​並​​​​​​​沒​​​​​​​有​​​​​​​提​​​​​​​供​​​​​​​所​​​​​​​有​​​​​​​功​​​​​​​能​​​​​​​,但​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​所​​​​​​​有​​​​​​​最​​​​​​​常​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​功​​​​​​​能​​​​​​​。​​​​​​​下​​​​​​​列​​​​​​​為​​​​​​​包​​​​​​​括​​​​​​​ 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, 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, netstat, nice, nohup, nslookup, od, openvt, passwd, patch, pidof, ping, ping6, pipe_progress, pivot_root, printenv, printf, ps, pwd, rdate, readlink, readprofile, realpath, renice, reset, rm, rmdir, rmmod, route, rpm, rpm2cpio, run-parts, runlevel, rx, sed, seq, setarch, setconsole, setkeycodes, setlogcons, setsid, sh, sha1sum, sleep, sort, start-stop-daemon, stat, strings, stty, su, sulogin, sum, swapoff, swapon, switch_root, sync, sysctl, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, tune2fs, udhcpc, udhcpd, umount, uname, uncompress, uniq, unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip
部​​​​​​​份​​​​​​​之​​​​​​​前​​​​​​​由​​​​​​​ busybox 所​​​​​​​提​​​​​​​供​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​現​​​​​​​在​​​​​​​已​​​​​​​提​​​​​​​供​​​​​​​完​​​​​​​整​​​​​​​功​​​​​​​能​​​​​​​版​​​​​​​。​​​​​​​除​​​​​​​了​​​​​​​上​​​​​​​列​​​​​​​的​​​​​​​指​​​​​​​令​​​​​​​之​​​​​​​外​​​​​​​下​​​​​​​列​​​​​​​指​​​​​​​令​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​完​​​​​​​整​​​​​​​功​​​​​​​能​​​​​​​版​​​​​​​。​​​​​​​
anaconda bash bzip2 jmacs ftp head joe kudzu-probe list-harddrives loadkeys mtools mbchk mtools mini-wm mtools jpico pump python python2.4 raidstart raidstop rcp rlogin rsync setxkbmap sftp shred ssh syslinux syslogd tac termidx vncconfig vncpasswd xkbcomp Xorg Xvnc zcat

警告

請​​​​​​​不​​​​​​​要​​​​​​​包​​​​​​​括​​​​​​​ %pre 指​​​​​​​令​​​​​​​。​​​​​​​已​​​​​​​經​​​​​​​替​​​​​​​您​​​​​​​新​​​​​​​增​​​​​​​了​​​​​​​這​​​​​​​個​​​​​​​指​​​​​​​令​​​​​​​。​​​​​​​

注意

在​​​​​​​來​​​​​​​源​​​​​​​資​​​​​​​料​​​​​​​媒​​​​​​​體​​​​​​​掛​​​​​​​載​​​​​​​與​​​​​​​第​​​​​​​二​​​​​​​階​​​​​​​段​​​​​​​開​​​​​​​機​​​​​​​管​​​​​​​理​​​​​​​程​​​​​​​式​​​​​​​載​​​​​​​入​​​​​​​後​​​​​​​,安​​​​​​​裝​​​​​​​前​​​​​​​ script 才​​​​​​​會​​​​​​​執​​​​​​​行​​​​​​​。​​​​​​​因​​​​​​​此​​​​​​​,無​​​​​​​法​​​​​​​在​​​​​​​安​​​​​​​裝​​​​​​​前​​​​​​​ script 下​​​​​​​更​​​​​​​改​​​​​​​來​​​​​​​源​​​​​​​資​​​​​​​料​​​​​​​媒​​​​​​​體​​​​​​​。​​​​​​​