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?
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?
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:
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?
I think you need "zerombr" .. preferably before the clearpart .. it might be "zerombr yes" as well .. I don't have an example in front of me.
Barry
tony.chamberlain@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:
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
- 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
On Wed, 13 Aug 2008, tony.chamberlain@lemko.com wrote:
I have the following in it:
clearpart --all
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?
You need to tell it which drives are 'fair game' to wipe.
clearpart --all --drives=xvda
-- Russ herrold