Jason wrote:
You may want to look at specifying root by it's UUID. This will
prevent issues like the USB drive being /dev/sdg on one machine,
/dev/sdb on another, and on reboot it all changing because the drives
were detected in a different order.
I have tried that and booting by UUID never worked for me except once in
past on some particular kernel. I can put an UUID in /etc/fstab, but not
as kernel boot parameter.
I did some googling about that and found soemthing about that UUID as
kernel parameter was a hack which was thrown out and that they don't
intend to support it in the future.
It's aong the lines of "if you don't like anything about booting
procedure, boot from initramfs, do what you have to do and then do
pivot_root "...
In the past, instead of 'rootdelay=', I add a wait to the init script,
eg:
while [ ! -e /dev/disk/by-uuid/1234-abcd-45gf-0659 ]
do
sleep 0.1
done
And how do you do that when you are trying to get to root partition
after kernel initialisation ? At that moment you can't run a script,
since you don't have an access to any partition.
You could use initrd/initramfs, but seems like a lot of complications
for little gain...
Branko
--
[email protected] mailing list