From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] Fix root device detection for lvm2
Date: Fri, 02 Jul 2010 01:44:21 +0200 [thread overview]
Message-ID: <4C2D2855.2020707@gmail.com> (raw)
In-Reply-To: <20100701233226.GU21862@riva.ucam.org>
[-- Attachment #1: Type: text/plain, Size: 1485 bytes --]
On 07/02/2010 01:32 AM, Colin Watson wrote:
> On Thu, Jul 01, 2010 at 11:25:00PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>
>> On 06/02/2010 09:07 PM, sean finney wrote:
>>
>>> Index: b/util/grub.d/10_linux.in
>>> ===================================================================
>>> --- a/util/grub.d/10_linux.in
>>> +++ b/util/grub.d/10_linux.in
>>> @@ -43,7 +43,8 @@
>>> esac
>>>
>>> if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
>>> - || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" ; then
>>> + || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
>>> + || [ "`grub-probe -t abstraction --device ${GRUB_DEVICE} | sed -e 's,.*\(lvm\).*,\1,'`" = "lvm" ] ; then
>>> LINUX_ROOT_DEVICE=${GRUB_DEVICE}
>>> else
>>> LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
>>>
>> Applied with some chages. Thanks
>>
> The changes seem to have been to simplify the test to:
>
> [ "x`grub-probe -t abstraction --device ${GRUB_DEVICE}`" = "xlvm" ]
>
> Unfortunately this is an incorrect simplification. grub-probe can print
> multiple abstractions, and does in the case of e.g. LVM on RAID. If it
> is correct to avoid UUIDs for plain LVM, it is also correct to avoid
> them for LVM on RAID.
>
>
Ok I agree. The problem with original patch was that it would accept
ttttlvmuuu too. Feel free to fix.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2010-07-01 23:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 19:07 [PATCH] Fix root device detection for lvm2 sean finney
2010-07-01 21:25 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-07-01 23:32 ` Colin Watson
2010-07-01 23:44 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-07-02 11:34 ` Colin Watson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C2D2855.2020707@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.