[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Are BSD partitions not supported?
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: Are BSD partitions not supported? |
Date: |
Tue, 01 Jun 2010 13:21:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 |
On 06/01/2010 12:34 PM, Grégoire Sutre wrote:
>
> if disk->partition is not NULL /* embedded partition */
> and
> disk->partition's partmap is msdos
> and
> disk->partition's msdos partition type is NetBSD or OpenBSD
> then
> interpret BSD label offsets as absolute /* (a) */
> else
> interpret BSD label offsets as relative /* (b) */
For FreeBSD we have to investigate 'c' partition to determine delta.
> fi
>
> 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.
>
> 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
> Grégoire
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature