how to play with multiple disks in kickstart file part 2

Hi All,

I am confuse in how to create my kickstart file more generic for multiple hardware like

1. to create 2 vg's every time with 50-50% space of whole disk.
2. is it possible to that if 2 disks present then we can create raid 1 of those disk automatically or as an option we can ask user to choose?

for now below i am using:

## Bootloader
bootloader --location=mbr --driveorder=sda,hda --append="crashkernel=auto"
zerombr

## Partition table
clearpart --all


## Partion Declaration

part /boot --fstype=ext4 --size=256
part pv.008226 --size=25600
part pv.008227 --size=15360
 

please help me with more generic code i can use to work on most - thank you!
The RockAsked:
Who is Participating?
 
joolsCommented:
I believe you need to use the `ondisk` directive in the kickstart file
0
 
The RockAuthor Commented:
Thanks it helps me partially
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.