Subject: Re: kern/15286: fdisk won't let you update the mbr_bootsel code
To: port-i386@netbsd.org <port-i386@netbsd.org>
From: David Laight <david@nohope.l8s.co.uk>
List: port-i386
Date: 01/19/2002 09:21:47
I'm not sure why I set 'kern' when entering this one!

The modified fdisk.s is available from:
http://www.btinternet.com/~david.laight/netbsd/fdisk.c

> 
> >Number:         15286
> >Category:       kern
> >Synopsis:       fdisk won't let you update the mbr_bootsel code
> >Confidential:   no
> >Severity:       non-critical
> >Priority:       medium
> >Responsible:    kern-bug-people
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Fri Jan 18 15:05:00 PST 2002
> >Closed-Date:
> >Last-Modified:
> >Originator:     David Laight
> >Release:        current 1.5ZA
> >Organization:
> >Environment:
> NetBSD snowdrop 1.5ZA NetBSD 1.5ZA (GENERIC) #1: Wed Jan 16 17:59:39 GMT 2002
>     dsl@snowdrop:/usr/bsd-current/src/sys/arch/i386/compile/GENERIC i386
> 
> >Description:
> fdisk only loads the mbr_bootsel code from /usr/mdec/mbr_bootsel,
> and then only if it isn't already installed.
> 
> 'fdisk -i -c mbr_code' will delete the bootselect configuration.
> 
> 'fdisk -B -c mbr_code' ignores the specified file completely
> (It load /usr/mdec/mbr_bootsel if the current bootstrap isn't an mbr one)
> 
> Intuitively both the above commands should update the boot code.
> 
> While fixing fdisk's mbr_bootsel handling:
> 
> 1) timeouts that are not a multiple of 5 seconds are not displayed with
>    the value that was configured
> 
> 2) The 'LBA reads needed' flag is never cleared
> 
> 3) Useful to be able to 'wait forever' (needs mbr_bootsel change)
>