From: Andrei Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem.
Date: Sun, 3 May 2015 11:21:33 +0300 [thread overview]
Message-ID: <20150503112133.2170d2e1@opensuse.site> (raw)
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?
next reply other threads:[~2015-05-03 8:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-03 8:21 Andrei Borzenkov [this message]
2015-05-07 13:03 ` Attempting to install GRUB to a disk with multiple partition labels or both partition label and filesystem Vladimir 'φ-coder/phcoder' Serbinenko
-- 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=20150503112133.2170d2e1@opensuse.site \
--to=arvidjaar@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.