All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grégoire Sutre" <gregoire.sutre@labri.fr>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Are BSD partitions not supported?
Date: Sun, 06 Jun 2010 19:05:37 +0200	[thread overview]
Message-ID: <4C0BD561.5040607@labri.fr> (raw)
In-Reply-To: <4C04ED20.7070203@gmail.com>

On 06/01/2010 01:21 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:

> For FreeBSD we have to investigate 'c' partition to determine delta.

Right.

>> In short, the normal interpretation of BSD label offsets would be the
>> relative one (b), and we would make an exception to handle NetBSD and
>> OpenBSD (a).
> The bottom line is: bsdlabel is broken concept. Unless support of
> $config is required I would omit it to disencourage further propagation
> of broken concepts.

I am not sure I understand what you mean here.

Regarding bsdlabel: it is not broken by itself.  The problem comes from
the fact that several OSes use it as (native) disklabel, but do not
interpret the fields in the same way.

I guess it's easier to maintain coherence when the disklabel is used
(natively) by a single OS.

>> Now, when BSD label offsets are detected absolute (a), should we
>> consider them as absolute:
>> - w.r.t. to the start of the disk (as is done in the code right now),
>>    or
>> - w.r.t to the location of the msdos partmap?
>> I prefer the second option since it is compatible with dd-ing an entire
>> disk into an msdos partition.  Maybe the loopback feature also requires
>> the second option (I don't know the internals).
>>
> Second one is cleaner. But perhaps it's pointless to support such config
> since no BSD will be able to bootstrap from such a config

You could at least boot the kernel from such a config. And, for NetBSD,
I believe that the use of wedges should allow the kernel to mount the
root file system (but I'm not an expert on wedges), provided that grub
gives the wedge information in the bootinfo structure.

Grégoire


  reply	other threads:[~2010-06-06 17:05 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-16 16:24 Are BSD partitions not supported? C. P. Ghost
2010-05-18 18:08 ` C. P. Ghost
2010-05-18 18:37   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-18 19:33     ` C. P. Ghost
2010-05-18 20:20       ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-18 22:06         ` C. P. Ghost
2010-05-19 17:49           ` C. P. Ghost
2010-05-19 18:00             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-19 18:33               ` C. P. Ghost
2010-05-19 18:40                 ` C. P. Ghost
2010-05-19 18:50                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-19 18:54                     ` Navdeep Parhar
2010-05-19 19:20                       ` C. P. Ghost
2010-05-19 19:12                     ` C. P. Ghost
2010-05-19 19:20                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-19 19:41                         ` C. P. Ghost
2010-05-20 16:19                           ` C. P. Ghost
2010-05-23  9:50                         ` Grégoire Sutre
2010-05-23 15:44                           ` C. P. Ghost
2010-05-24  0:56                             ` Grégoire Sutre
2010-05-24 16:50                               ` C. P. Ghost
2010-05-31 21:16                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-01 10:34                             ` Grégoire Sutre
2010-06-01 11:21                               ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-06 17:05                                 ` Grégoire Sutre [this message]
2010-05-19 18:48                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-18 22:20         ` Vladimir 'φ-coder/phcoder' Serbinenko

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=4C0BD561.5040607@labri.fr \
    --to=gregoire.sutre@labri.fr \
    --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.