This won't answer your question directly since I was doing this to find the correct drive to install on--which was sometimes "sda" and sometimes "md raid sdb and sdc and then install to md0". What I did was to build a script called in %pre that ran dmidecode and grabbed the system product name and then wrote a /tmp/boot_setup based in that. I then %included that file. On Fri, Jan 29, 2016 at 10:53 AM, Hajducko, Steven <Steven_Hajducko@xxxxxxxxxx> wrote: > Is there a way to consistently detect the boot-drive, across multiple > hardware platforms? > > We have several different hardware types - but it remains consistent that we > always want the OS installed on the first drive in boot order. We played > around with --on-bios-disk, but that doesn't always work ( it fails, for > instance, on Dell R820's with the PERC RAID controller ). We've also tried > specifying /dev/disk/by-id/edd-int13_dev80, which works on the Dell's, but > fails on VMs. ( And then throw HP and it's cciss into the whole mix.. ). > /dev/sda isn't always the boot disk - this happens to us with certain RAID > configs like 1 logical drive and 8 JBOD's. The JBOD's get detected as > /dev/sda-h and the RAID drive ( which is the boot drive ), ends up as > /dev/sdi. > > Just curious if anyone else has come up with a solid way to always figure > out what the boot drive is. > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list