tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: turning off COMPAT_386BSD_MBRPART in disklabel



On Sat, Feb 12, 2011 at 10:07:48PM +0000, David Holland wrote:
> On Mon, Feb 07, 2011 at 01:48:57AM -0500, Thor Lancelot Simon wrote:
>  > For the record, I am pretty sure it was sysinst, not disklabel, which
>  > hosed my disk.  Sysinst compiles equivalent code in directly, no?
> 
> There are only two uses of MBR_PTYPE_386BSD in src/distrib. One is a
> perfectly innocuous list of partition type IDs. The other is in
> src/distrib/utils/sysinst/arch/i386/md.c, which changes the partition
> ID of a MBR_PTYPE_386BSD partition to MBR_PTYPE_NETBSD if no
> MBR_PTYPE_NETBSD partitions are seen.
> 
> This is, however, only reached if someone's explicitly attempting to
> upgrade an existing installation, so it's probably harmless -- I think
> you got hosed by disklabel.

Sysinst also asks all the disk setup questions and asks you to confirm
before writing to the disk at all. So you'd have to try quite hard
to get it to kill the partitioning.
(Unless it was the kernel 'write out the label' code that killed it.)

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index