======Create a kickstart configuration file======
* [[automatic_fedora_8_installation_with_kickstart#Pre-installation|Pre-installation]]
*[[automatic_fedora_8_installation_with_kickstart#Edit Kisckstart Configuration File|Edit Kisckstart Configuration File]]
*[[automatic_fedora_8_installation_with_kickstart#Edit isolinux.cfg|Edit isolinux.cfg]]
*[[ntop#Make iso image|Make iso image]]
=====Pre-installation=====
yum install system-config-kickstart
=====Edit Kisckstart Configuration File=====
You can use /root/anaconda-ks.cfg as a ks.cfg template.
cp /root/anaconda-ks.cfg anaconda-ks.cfg.bak
You can use system-config-kickstart to edit
./system-config-kickstart
Save as ks.cfg file
After you run system-config-kickstart, edit ks.cfg
vi ks.cfg
**P.S. Comment cdrom becasue fedora 8 has a bug and it fails if you didn't.**
add
--hostname temp to the end of network line.
The following is a ks.cfg
#platform=x86, AMD64, or Intel EM64T
# Network information
network --bootproto=static --device=eth0 --gateway=192.168.10.1 --ip=192.168.10.10 --nameserver=192.168.10.5 --netmask=255.255.255.0 --onboot=on --hostname temp
network --bootproto=static --device=eth1 --gateway=192.168.11.1 --ip=192.168.11.11 --nameserver=192.168.11.5 --netmask=255.255.255.0 --onboot=on --hostname temp
# Root password
rootpw --iscrypted $1$umTRFqI1$EvmUSHR5AS47/qDcTSY/A0
# System authorization information
auth --useshadow --enablemd5
# Use graphical install
graphical
# Firewall configuration
firewall --enabled --http --ssh --port=5901:tcp
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Install OS instead of upgrade
install
# Use CDROM installation media
# cdrom
# System timezone
timezone Asia/Hong_Kong
# X Window System configuration information
xconfig --defaultdesktop=GNOME --depth=8 --resolution=800x600
# System bootloader configuration
bootloader --append="rhgb quiet" --location=mbr --driveorder=sda
# Partition clearing information
clearpart --linux
# Disk partitioning information
part /boot --fstype ext3 --size=200 --ondisk=sda
part pv.2 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.2
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=1000 --grow --maxsize=1984
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
%packages
@admin-tools
@editors
@system-tools
@gnome-software-development
@fonts
@text-internet
@x-software-development
@gnome-desktop
@core
@base
@base-x
@web-server
@smb-server
@development-libs
@legacy-fonts
@development-tools
@graphical-internet
wireshark-gnome
lynx
mesa-libGLU-devel
gnome-netstatus
pax
urw-fonts
ghostscript-fonts
imake
-elinks
-bittorrent
-slrn
-mutt
-tomboy
-gnome-themes
-gnome-power-manager
-gnome-backgrounds
-compiz-gnome
-gnome-bluetooth
-gnome-audio
-gnome-phone-manager
-bluez-gnome
-bug-buddy
-gnome-screensaver
-gnome-media
-gcalctool
-wireless-tools
-evolution
-transmission
-pidgin
-evolution-help
-evolution-webcal
-ekiga
%end
=====Edit isolinux.cfg=====
We have to add ks=cdrom to the install boot prompt, find the file: /isolinux/isolinux.cfg,
open it and locate the line “append initrd=initrd.img“, add “ks=cdrom“, to make it like this:
append initrd=initrd.img ks=cdrom
=====Make iso image=====
Copy ks.cfg to the root of the CD. Then you can make iso
//NOTE: Make sure you have the file .disinfo and .treeinfo in /tmp/fedora. If it’s missing, the ISO will fail with a very non-intuitive error that: “The Fedora CD was not found in any of your CDROM drives. Please insert the Fedora CD and press OK to retry.” This file is apparently critical to how anaconda reads the file, but it’s not trapping that error in a useful way. Oh well. Just copy it from the original disc and put it in your build root, and all will be well.//
cd /tmp/fedora/
mkisofs -o /tmp/fedora.iso -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V "Alife Custom Fedora 8" .
======KickStart Installation Method======
=====Boot from CD-Rom=====
linux ks=cdrom:/ks.cfg
You must have a kickstart file at root of the CD.
=====Boot from http=====
linux ks=http://192.168.1.20/ks.cfg