All of lore.kernel.org
 help / color / mirror / Atom feed
* Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem.
@ 2015-05-03  8:21 Andrei Borzenkov
  2015-05-07 13:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Andrei Borzenkov @ 2015-05-03  8:21 UTC (permalink / raw)
  To: grub-devel

Could someone explain why this message is output here? It is absolutely
not what condition checks for

    if (ctx.container
        && grub_strcmp (ctx.container->partmap->name, "msdos") == 0
        && ctx.dest_partmap
        && (ctx.container->msdostype == GRUB_PC_PARTITION_TYPE_NETBSD
            || ctx.container->msdostype == GRUB_PC_PARTITION_TYPE_OPENBSD))
      {
        grub_util_warn ("%s", _("Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem.  This is not supported yet."));
        goto unable_to_embed;
      }

Condition checks whether we are installing on a netbsd or openbsd
partition with nested partition label. At this point we have really no
idea whether any filesystem is present (we check for it later). So
neither "multiple partition labels" nor "filesystem" appear to have
anything to do with this check.

Also it actually skips further sanity check for reserved sector in
nested partition label and jumps directly to embedding.

So it sounds like both error message is misleading and code is out of
place (it probably should be moved after reserved sector check).

Comments?


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem.
@ 2015-05-05 11:10 Sebastian Pipping
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Pipping @ 2015-05-05 11:10 UTC (permalink / raw)
  To: grub-devel

Hi,


I think you may be looking for this commit:


$ git show -s 014b6806
commit 014b68068d4136812f2e3dc16c986351e6fb2779
Author: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date:   Fri Jan 7 13:27:34 2011 +0100

        * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
        Reported and tested by: Grégoire Sutre.


That's where the code seems to originate from.

It doesn't answer your question yet, though.

Best,



Sebastian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-07 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-03  8:21 Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem Andrei Borzenkov
2015-05-07 13:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
  -- strict thread matches above, loose matches on Subject: below --
2015-05-05 11:10 Sebastian Pipping

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.