I have the need to use the same disk and so the same bootloader on devices with different motherboard. Each motherboard has it's own way of mapping devices so sometime the bootdisk is mapped ad hda other as hdc. I already try to manage this boot with different device assigning
and before start check how thw board mapped the boot device ( hda, hdc , ecc... ) and based on that mapping fix the boot parameter.
I already try to manage the boot from dom with different device replacing the device name with the LABEL option ( grub bootloader ). But it didn't works
title Linux 220.127.116.11 root (hd0,0) kernel /boot/vmlinuz-18.104.22.168 ro root=/dev/hda1 console=ttyS0,9600 console=tty0 apm=off
This didn't works ( kernel unable to find root=LABEL=Flash-Root )
title Linux 22.214.171.124 root (hd0,0) kernel /boot/vmlinuz-126.96.36.199 ro root=LABEL=Flash-Root console=ttyS0,9600 console=tty0 apm=off
Some guys suggested my as an alternative solution to manage initrd and so I now trying to manage and fix the boot parameter through the script linuxrc
Mi first question is about documentation about nash, the scripting interpreter used by linuxrc. I haven't found documentation about how use nash and most important how use nash for linuxrc. Does someone known how can I find some documentation and samples ?
My second ( and last ) question is about how can I check from insice linuxrc what device ( hda1, hdc1, ecc.. ) is valid and based on that set the right value for the /proc/sys/kernel/real-root-dev variable. I think to check the disk using fdisk, but this program require some library to be loaded inside initrd and so I'm looking for a solution which need less space.