From nobody@FreeBSD.org  Mon Mar 28 08:45:39 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AEF2E106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 08:45:39 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9F4EE8FC20
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 08:45:39 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2S8jdvn011601
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2011 08:45:39 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2S8jdun011600;
	Mon, 28 Mar 2011 08:45:39 GMT
	(envelope-from nobody)
Message-Id: <201103280845.p2S8jdun011600@red.freebsd.org>
Date: Mon, 28 Mar 2011 08:45:39 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fix offset in boot.config(5)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         155989
>Category:       docs
>Synopsis:       [patch] Fix offset in boot.config(5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 08:50:10 UTC 2011
>Closed-Date:    Mon Jan 16 18:26:41 UTC 2012
>Last-Modified:  Sun Feb 03 22:29:11 UTC 2013
>Originator:     Garrett Cooper
>Release:        CURRENT
>Organization:
n/a
>Environment:
N/A
>Description:
The following is patch fixes the documentation for boot.config(5) as the indexes are incorrect per boot(8):

    bios_drive:interface(unit,[slice,]part)filename [-aCcDdghmnPprsv]
            [-Sspeed]
            Specify boot file and flags.

            bios_drive
                    The drive number as recognized by the BIOS.  0 for the
                    first drive, 1 for the second drive, etc.

I submitted it directly to danger@, but he suggested I create a PR for it.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: share/man/man5/boot.config.5
===================================================================
--- share/man/man5/boot.config.5	(revision 220091)
+++ share/man/man5/boot.config.5	(working copy)
@@ -80,18 +80,19 @@
 .Pp
 The command:
 .Bd -literal -offset indent
-# echo "1:ad(1,a)/boot/loader" > /boot.config
+# echo "0:ad(1,a)/boot/loader" > /boot.config
 .Ed
 .Pp
 will instruct the second stage of
 .Xr boot 8
-on the first disk to boot with the third
-.Xr boot 8
-stage from the second disk.
+located on the second disk recognized by the BIOS, to boot via
+.Xr loader 8
+located on the first partition of the second non-floppy, non-SCSI disk
+recognized by the BIOS.
 .Pp
 The command:
 .Bd -literal -offset indent
-# echo "1:ad(1,a)/boot/loader -P" > /boot.config
+# echo "0:ad(1,a)/boot/loader -P" > /boot.config
 .Ed
 .Pp
 will do both of the above.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Mon Jan 2 15:31:00 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155989 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Jan 16 18:26:40 UTC 2012 
State-Changed-Why:  
this change is incorrect, the first value 0: implies tha t thi is the 
first disk, not second that bios probes 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155989 
>Unformatted:
