Subject: port-sparc64/17204: upgrade procedure doesn't reinstall /ofwboot
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 06/10/2002 12:21:14
>Synopsis: upgrade procedure doesn't reinstall /ofwboot
>Arrival-Date: Mon Jun 10 09:01:04 PDT 2002
>Release: NetBSD 1.6_BETA1, from releng.netbsd.org 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 email@example.com:/autobuild/sparc64/OBJ/autobuild/src/sys/arch/sparc64/compile/GENERIC sparc64
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
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.