Subject: port-sparc64/17204: upgrade procedure doesn't reinstall /ofwboot
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bouyer@antioche.lip6.fr>
List: netbsd-bugs
Date: 06/10/2002 12:21:14
>Number:         17204
>Category:       port-sparc64
>Synopsis:       upgrade procedure doesn't reinstall /ofwboot
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 10 09:01:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6_BETA1, from releng.netbsd.org 200206060000
>Organization:

LIP6, Universite Paris VI.

>Environment:
System: NetBSD java 1.6_BETA1 NetBSD 1.6_BETA1 (GENERIC) #0: Sat Jun 8 05:56:04 UTC 2002 autobuild@tgm.daemon.org:/autobuild/sparc64/OBJ/autobuild/src/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:
	I've upgraded a sparc64 from 1.5.1 using binary sets and the install
	tools from ftp://releng.netbsd.org/pub/NetBSD-daily/200206060000/sparc64	sysinst completed without troubles but the machine failed to reboot:
	the old boot loader was still in use, which can't deal with the
	new kernel.
	After investigation, it appears that the /usr/mdec/binstall
	script doens't overwrite /ofwboot if it already exists.
	
>How-To-Repeat:
	run binstall -v, notice that is report suscess and it reinstalled
	the fisrt stage boot block, but didn't touch /ofwboot. Remove /ofwboot,
	rerun binstall, notice it properly reinstalled /ofwboot using
	the new version.
>Fix:
	I guess binstall should always try to reinstall /ofwboot.
	i386 installboot deal with this by renaming the second-stage
	to boot.bak, removing it definitively if installation of new boot
	loader succeed, renaming it back to boot if installation fail.
>Release-Note:
>Audit-Trail:
>Unformatted: