From nobody@FreeBSD.org  Fri Nov 11 09:17:07 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 02DF416A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2005 09:17:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7E47943D55
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2005 09:17:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jAB9H60d047049
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2005 09:17:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jAB9H6OD047048;
	Fri, 11 Nov 2005 09:17:06 GMT
	(envelope-from nobody)
Message-Id: <200511110917.jAB9H6OD047048@www.freebsd.org>
Date: Fri, 11 Nov 2005 09:17:06 GMT
From: Joo <joao@matik.com.br>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nextboot.conf not deleted 
X-Send-Pr-Version: www-2.3

>Number:         88831
>Category:       kern
>Synopsis:       nextboot.conf not deleted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    wes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 11 09:20:22 GMT 2005
>Closed-Date:    Tue Jan 24 03:18:29 GMT 2006
>Last-Modified:  Tue Jan 24 03:20:07 GMT 2006
>Originator:     Joo
>Release:        6.0-R
>Organization:
Infomatik
>Environment:
FreeBSD anb.matik.com.br 6.0-RELEASE FreeBSD 6.0-RELEASE #5: Thu Nov 10 22:30:42 BRST 2005     hmm@anb.matik.com.br:/usr/src/sys/i386/compile/anb  i386

>Description:
              after reboot -k kernel the system boot the desirede kernel but nextboot.conf is not deleted and the wrong kernel is booted
>How-To-Repeat:
              reboot -k kernel 
>Fix:
              delete /boot/nextboot.conf manually after using reboot -k
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: linimon 
State-Changed-When: Thu Jan 19 00:28:04 UTC 2006 
State-Changed-Why:  
Fixed by wes in rc/etc/rc.d/root r1.13. 


Responsible-Changed-From-To: freebsd-bugs->wes 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Jan 19 00:28:04 UTC 2006 
Responsible-Changed-Why:  
MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88831 
State-Changed-From-To: patched->feedback 
State-Changed-By: wes 
State-Changed-When: Sat Jan 21 17:29:34 UTC 2006 
State-Changed-Why:  
Fixed and merged to 6- and 5- branches for upcoming releases. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=88831 

From: JoaoBR <joao@matik.com.br>
To: bug-followup@freebsd.org, joao@matik.com.br
Cc: Wes Peters <wes@freebsd.org>
Subject: Re: kern/88831: nextboot.conf not deleted
Date: Sun, 22 Jan 2006 08:18:58 -0200

 I have not checked if it works now correctly
 
 anyway there is no such option "-D"
 man page say the default for "-k" is "this is a one-shot option"
 
 Jo=E3o
 
 
 
 
 
 
 
 A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
 Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br

From: Ceri Davies <ceri@submonkey.net>
To: joao@matik.com.br
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/88831: nextboot.conf not deleted
Date: Mon, 23 Jan 2006 12:59:59 +0000

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --Apple-Mail-14-800209928
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=US-ASCII; format=flowed
 
 
 
  >I have not checked if it works now correctly
  >
  > anyway there is no such option "-D"
  > man page say the default for "-k" is "this is a one-shot option"
 
 It does work now.  The -D option is to nextboot, not reboot.
 
 Ceri
   
 
 --Apple-Mail-14-800209928
 content-type: application/pgp-signature; x-mac-type=70674453;
 	name=PGP.sig
 content-description: This is a digitally signed message part
 content-disposition: inline; filename=PGP.sig
 content-transfer-encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.1 (Darwin)
 
 iD8DBQFD1NNPme8yCsQvJJ0RAv5TAJ42pKaVAFm2zz++TMRsktGyPAKwwACfVsdj
 qHTWAoQoJJ0j6lz1Iw3J7Dk=
 =iAo3
 -----END PGP SIGNATURE-----
 
 --Apple-Mail-14-800209928--

From: JoaoBR <joao@matik.com.br>
To: bug-followup@freebsd.org
Cc: Wes Peters <wes@freebsd.org>
Subject: Re: kern/88831: nextboot.conf not deleted
Date: Mon, 23 Jan 2006 11:45:30 -0200

 On Sunday 22 January 2006 08:18, JoaoBR wrote:
 > I have not checked if it works now correctly
 >
 > anyway there is no such option "-D"
 > man page say the default for "-k" is "this is a one-shot option"
 >
 
 
 I just checked on releng_6 it is working
 after reboot -k kernel.other the next boot assumes the former kernel normal=
 ly
 
 thank's
 Jo=E3o
 
 
 
 
 
 
 
 
 A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
 Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br
State-Changed-From-To: feedback->closed 
State-Changed-By: wes 
State-Changed-When: Tue Jan 24 03:17:31 UTC 2006 
State-Changed-Why:  
Tested (on releng_6) by originator joao@matik.com.br. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=88831 

From: Wes Peters <wes@softweyr.com>
To: JoaoBR <joao@matik.com.br>
Cc: bug-followup@freebsd.org, Wes Peters <wes@freebsd.org>
Subject: Re: kern/88831: nextboot.conf not deleted
Date: Mon, 23 Jan 2006 19:18:59 -0800

 On Jan 23, 2006, at 5:45 AM, JoaoBR wrote:
 
 > On Sunday 22 January 2006 08:18, JoaoBR wrote:
 >> I have not checked if it works now correctly
 >>
 >> anyway there is no such option "-D"
 >> man page say the default for "-k" is "this is a one-shot option"
 >>
 >
 >
 > I just checked on releng_6 it is working
 > after reboot -k kernel.other the next boot assumes the former  
 > kernel normally
 
 Thank you!  I've closed the PR based on your followup here.
 
 	-- Wes
 
 
>Unformatted:

	The real solution is to have nextboot clean up after itself
	with the -D option.
