[CentOS] ks
Plant, Dean
dean.plant at roke.co.uk
Wed Aug 13 13:22:32 UTC 2008
tony.chamberlain at lemko.com wrote:
> I made a file partition-ks.cfg and put it in our machine 192.168.5.17
> under /var/www/html. When I install a new machine I just do a
>
> linux ks=http://192.168.5.17/partition-ks.cfg
>
> I have a couple questions though:
>
> 1) I have the following in it:
>
> clearpart --all
> part /boot --fstype ext3 --size=100
> part /var --fstype ext3 --size=10000
> part / --fstype ext3 --size=10000
> part swap --size=2048
> part /home --fstype ext3 --size=100 --grow
>
> which is OK if I am installing over a previous installation. But for
> new machines it does not seem to recognize the "clearpart" or it is
> not enough because I am still prompted whether I want to remove
> partitions. Should I be using something else?
Take a look at system-config-kickstart to help build your kickstart
files.
Anyway I think what you are looking for is,
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
>
>
> 2) I would like to duplicate the CentOS installation disk and place
> partition-ks.cfg on the disk too so that during boot it automatically
> is used (or barring that I can still say ks=<dvd
> drive>/partition-ks.cfg. Automatically would be better. I tried some
> ways I thought it said to
> do that but it did not work. Any tips?
Copy the DVD put the ks.cfg file in the root of the DVD files
vi /<dvd-root>/isolinux/isolinux.cfg and edit the append line or add a
new entry like this
label yourlabel
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/ks.cfg
Make iso and burn as described here:
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/x8664-multi-
install-guide/s1-steps-install-cdrom.html
Boot DVD and type "yourlabel" to activate your kickstart file.
HTH
Dean
More information about the CentOS
mailing list