Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In my kickstart installation I specify that the operating system should be installed on /dev/sda.

We have some Dell machines in our environment with iDRAC. When virtual media is attached in iDRAC, it maps Virtual CD drives and Virtual Floppy drives as /dev/sda and /dev/sdb leaving my desired installation drive as /dev/sdc. This causes my kickstart installation to fail due to it not being able to find the drive (/dev/sda) I had specified earlier.

Is there any way to specify in kickstart (anaconda) to install on the first "non-removable media", or to keep trying until it finds such device?

Bonus Points: If anyone has a more ideal method of specifying a drive installation destination.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I've never had this issue... but then again, I don't specify the block device in my kickstarts (which I run with Dell DRAC and HP ILO management).

Have you tried not specifying /dev/sda? I'm assuming you have a RAID controller, so the resulting VD will be the likely install target, no?

If there are other VD's that you wish to ignore, use the --ignoredisk kickstart option. You can also specify /dev/disk-by-id as targets, but that's more complicated.

# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --initlabel
part /boot --fstype ext4 --size=500
part /usr --fstype ext4 --size=16384 --asprimary
part / --fstype ext4 --size=20480 --asprimary
part /var --fstype ext4 --size=8192
part swap --size=16384
part /tmp --fstype ext4 --size=6144

Edit: From the Red Hat kickstart guide:

enter image description here

share|improve this answer
    
How would you go about filtering in /dev/disk/by-id ? I think not specifying will work for my scenario. Just curious as to what the filtering criteria would be or how you would perform it reliably. –  rainereality Jul 26 at 13:10
    
@rainereality See my edit above. –  ewwhite Jul 26 at 13:12
    
Thanks! For some reason I didn't even expect that /dev/disk/by-id option was included in kickstart and thought that it would be a %post script that you would have to write. –  rainereality Jul 26 at 13:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.