Subject: port-sparc64/17204: upgrade procedure doesn't reinstall /ofwboot
To: None <>
From: None <>
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
>Release:        NetBSD 1.6_BETA1, from 200206060000

LIP6, Universite Paris VI.

System: NetBSD java 1.6_BETA1 NetBSD 1.6_BETA1 (GENERIC) #0: Sat Jun 8 05:56:04 UTC 2002 sparc64
Architecture: sparc64
Machine: sparc64
	I've upgraded a sparc64 from 1.5.1 using binary sets and the install
	tools from	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.
	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.
	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.