The translation is temporarily closed for contributions due to maintenance, please come back later.
English Indonesian
This script determines the number of hard drives in the system and writes a text file with a different partitioning scheme depending on whether it has one or two drives. Instead of having a set of partitioning commands in the Kickstart file, include the following line: Script ini menentukan jumlah hard drive dalam sistem dan menulis file teks dengan skema partisi yang berbeda tergantung pada apakah ia memiliki satu atau dua drive. Alih-alih memiliki satu set perintah partisi di file Kickstart, sertakan baris berikut:
[command]#%include /tmp/part-include#
[command]#%include /tmp/part-include#
The partitioning commands selected in the script will be used. Perintah partisi yang dipilih dalam skrip akan digunakan.
Example Post-installation Script Contoh Skrip Pasca-instalasi
The following is an example [command]#%post# section: Berikut ini adalah contoh bagian [command]#%post#:
Sample %post Script Contoh Skrip %post
# Start of the %post section with logging into /root/ks-post.log
%post --log=/root/ks-post.log
# Mulai dari bagian %post dengan masuk ke /root/ks-post.log
%post --log=/root/ks-post.log
# Mount an NFS share
mkdir /mnt/temp
mount -o nolock 10.10.0.2:/usr/new-machines /mnt/temp
openvt -s -w -- /mnt/temp/runme
umount /mnt/temp
# Pasang berbagi NFS
mkdir /mnt/temp
mount -o nolock 10.10.0.2:/usr/new-machines /mnt/temp
openvt -s -w -- /mnt/temp/runme
umount /mnt/temp
# End of the %post section
%end
# Akhir dari bagian %posting
%akhir
The above example mounts an NFS share and executes a script named `runme` located at `/usr/new-machines/` on the share. Note that NFS file locking is *not* supported while in Kickstart mode, therefore the [option]#-o nolock# option is required. Contoh di atas me-mount share NFS dan mengeksekusi skrip bernama `runme` yang terletak di `/usr/new-machines/` pada share. Perhatikan bahwa penguncian file NFS *tidak* didukung saat dalam mode Kickstart, oleh karena itu opsi [opsi]#-o nolock# diperlukan.