kernel root parameter.. dynamic?

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
Here is a typical line from grub:
Code:
kernel (hd0,0)/gentoo-current root=/dev/sda3

now, we are deploying the same image (inc. kernel) on multiple machines, some are IDE (hda) others SATA (sda)

Is there a way for the label provided to root= to be dynamic dependant on which drive type it is?
 
I did wonder about that.. so:

I make a symlink from /dev/hda3 to /dev/sda3
If machine has /dev/sda3 it will follow symlink
If machine has /dev/hda3 the symlink will be replaced and it'll "just work"

may give that a try
 
Back
Top Bottom