[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <49D12986.6060206@archlinux.org>
Date: Mon, 30 Mar 2009 22:20:22 +0200
From: Thomas Bächler <thomas@...hlinux.org>
To: Alexander Clouter <alex@...riz.org.uk>
Cc: linux-kernel@...r.kernel.org
Subject: Re: fastboot/async and initramfs: How am I supposed to know
when?devices are finished initializing?
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.
Download attachment "signature.asc" of type "application/pgp-signature" (261 bytes)
Powered by blists - more mailing lists