I have an industrial PC mounting Linux.
These PC is delivered in two version, each with slightly different internal board and depending on the board type the disk inside the PC is see as hda or hdc.
Until now, to select between the two type of disk boot I simply put two entry inside the grub menu.lst like show below, so at the first start of the PC the maintenance people will select the correct device which will be memorize for future reboot.
default = 0 timeout = 9 title Linux 2.4.34 ( hda ) root (hd0,0) kernel /boot/vmlinuz-2.4.34 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off title Linux 2.4.34 ( hdc ) root (hd0,0) kernel /boot/vmlinuz-2.4.34 ro root=/dev/hdc1 console=ttyS0,9600 console=tty0 apm=off
But in most cases this type of PC are delivered without screen and keyboard and the maintenance people are not able to select the boot option so I'm looking for a way that allow the PC to check for the correct boot device before loading the kernel.
In pratical term I need that the boot procedure check if the disk is see as /dev/hdc or as /dev/hda in order to call the boot option with the right value for root device ( ie root=/dev/hda1 or root=/dev/hdc1 )
The problem is that I have no idea if that is possible and how to do that.
Someone have some suggestion about this topic ?