From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem.
Date: Thu, 07 May 2015 15:03:47 +0200 [thread overview]
Message-ID: <554B62B3.2070006@gmail.com> (raw)
In-Reply-To: <20150503112133.2170d2e1@opensuse.site>
[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]
On 03.05.2015 10:21, Andrei Borzenkov wrote:
> 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?
>
It's just bad message. We need this special check because net- and
openbsd labels have metadata in the partition and we have no code
currently to avoid this metadata even if filesystem there could support
embedding. So perhaps something like
"Embedding into partitions with OpenBSD or NetBSD metadata is not
supported yet"
?
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]
next prev parent reply other threads:[~2015-05-07 13:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-05 11:10 Sebastian Pipping
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=554B62B3.2070006@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.