Re: fastboot/async and initramfs: How am I supposed to knowwhen?devices are finished initializing?

From: Thomas Bächler
Date: Mon Mar 30 2009 - 16:20:44 EST


Alexander Clouter schrieb:
If the user is specifying the boot device, could you not 'teach' them to LABEL the boot device and live off something slightly more fancy (but akin to) the following:

----
while true
do
mount LABEL=root /whatever

if [ $? -eq 0 ]; then
break
fi

# do some md and lvm magic dance here

sleep 1
done
----

Your initramfs could do extra steps everytime the loop...erm...loops.

Now of course the downside is LABELing mounted devices, XFS for example, is not an easy thing to do... :-/

We do use UUIDs (or LABELs), but that doesn't solve the LVM problem, because the given device "/dev/somevg/somelv" only appears after LVM has been activated! I am thinking about using udev scan for LVM volume groups each time a hard drive appear that contains an LVM device. But that is a topic for another place.

Attachment: signature.asc
Description: OpenPGP digital signature