Subject: install/25601: i386 and sparc install media miss rmdir
To: None <gnats-bugs@gnats.NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 05/17/2004 01:40:08
>Number:         25601
>Category:       install
>Synopsis:       i386 and sparc install media miss rmdir
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 16 23:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Manuel Bouyer
>Release:        NetBSD 2.0_BETA, 20040510  build
>Organization:
>Environment:
System: NetBSD rochebonne.antioche.eu.org 2.0_BETA NetBSD 2.0_BETA (ROCHEBONNE) #6: Sun May 16 01:52:17 CEST 2004 bouyer@pop.lip6.fr:/local/pop1/bouyer/tmp/i386/obj/local/pop1/bouyer/netbsd-2-0/src/sys/arch/i386/compile/ROCHEBONNE i386
Architecture: i386
Machine: i386
>Description:
	I used the install media from releng to upgrade an i386 and a sparc
	to 2.0. During the network setup a few things went wrong with both
	machines, and I ^C sysinst. sysinst tried to restore the system
	to a working state to renaming /targetroot/etc.old to /targetroot/etc
	At the end of this process, it tries to rmdir /targetroot/etc.old
	and fail because rmdir isn't on the ramdisk (i386) or miniroot (sparc).
	This cause subsequent upgrade attempt to fail as well because there
	is still an empty etc.old directory on the root filesystem.
>How-To-Repeat:
	start upgrade, ^C in network setup, notice message about failed
	rmdir. restart upgrade, it aborts with a message about etc.old
>Fix:
	either add rmdir to the crunched binary, or change sysinst to use
	rm -rf instead of rmdir.
>Release-Note:
>Audit-Trail:
>Unformatted: