Running GRUB, I want to set the kernel root parameter to the same partition (or more generically, to a partition on the same device) as the disk with the bootloader.
Initially, the install set the GRUB menu item to pass /dev/XX as the root parameter:
title XXXXX
root (hd#,#)
kernel /boot/vmlinuz-XXXX root=/dev/XX1 resume=/dev/XX2 splash=silent quiet showopts vga=0x###
initrd /boot/initrd-XXXX
I can change the kernel line to reference my disk's label, increasing its tolerance for appearing in various orders:
kernel /boot/vmlinuz-XXXX root=LABEL=??? resume=LABEL=swap? splash=silent quiet showopts vga=0x###
I would like to change that line so that I can reference the boot partition, whether it's /dev/sda2 or /dev/hdb6, or even better to reference only a partition number, which the kernel will interpret relative to the boot partition (root (hd#,#) in GRUB).

root=UUIDand it will stick to the partition no matter what dev node it would be or even from what disk. – Hanan N. Dec 14 '11 at 13:50