Kickstart Centos USB Key Centos 6.3

chandank asked:

I have got an annoying issue when I try to use it using a USBkey install on a physical box that googleing is not helping.

The installation works fine if I specify a URL as install media, but it does not work if I specify the same USB Key as the install media. There is excellent discussion at centos forum
Here but it does not seems to help me.

First let me tell you what I indent to achieve, I need to have raid 1 using two hard-disk. The raid partition stuff works but I just can’t make it work using a USB kickstart

if I give the URL it works

 url --url=http://my.machine/ks/CentOS-6.3

But with USB it does not

harddrive --partition=sda1 --dir=/

If I don’t ignore that drive

ignoredisk --drives=sda

Then on later stage it says [sda1] not found. But if I don’t ignore, it will install Linux on sda itself notwithstanding the fact that I am specifying disk names in raid conf

part raid.008001 --ondisk=sdb --asprimary --size=512
part raid.008002 --ondisk=sdc --asprimary --size=512

part raid.008017 --ondisk=sdb --grow --asprimary --size=200

part raid.008033 --ondisk=sdc --grow --asprimary --size=200

raid /boot --fstype=ext4 --level=1 --device=md0 raid.008001 raid.008002
raid pv.009001 --level=1 --device=md1 raid.008033 raid.008017

I am using CentOS 6.3 minimal install.

My answer:

It might be easiest if you just make a new kickstart file.

Do the installation manually from the USB stick. The installed system will have a generated /root/anaconda-ks.cfg which you can then add your own customizations to. Customize and copy that kickstart file back to the USB stick and then run it.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.