From kogane@jp.FreeBSD.org  Thu May  4 16:06:46 2006
Return-Path: <kogane@jp.FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BE71116A426
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 May 2006 16:06:46 +0000 (UTC)
	(envelope-from kogane@jp.FreeBSD.org)
Received: from castle.jp.FreeBSD.org (castle.jp.FreeBSD.org [210.226.20.15])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C07FD43D70
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 May 2006 16:06:45 +0000 (GMT)
	(envelope-from kogane@jp.FreeBSD.org)
Received: (from kogane@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id k44G6iH21386;
	Fri, 5 May 2006 01:06:44 +0900 (JST)
	(envelope-from kogane)
Message-Id: <200605041606.k44G6iH21386@castle.jp.FreeBSD.org>
Date: Fri, 5 May 2006 01:06:44 +0900 (JST)
From: n-kogane@syd.odn.ne.jp
Reply-To: n-kogane@syd.odn.ne.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: can't upgrade install at 6.1-RC?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         96780
>Category:       bin
>Synopsis:       [sysinstall] can't upgrade install at 6.1-RC? (/var/empty)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 04 16:10:13 GMT 2006
>Closed-Date:    Fri May 05 19:35:39 GMT 2006
>Last-Modified:  Fri May 05 19:35:39 GMT 2006
>Originator:     Nobuyuki Koganemaru
>Release:        FreeBSD 6.1-RC1 i386
>Organization:
KOGANEMARU Computer Engineering Service Corporation.
>Environment:
System: FreeBSD kcesx21.koganemaru.co.jp 6.1-RC1 FreeBSD 6.1-RC1 #0: Mon Apr 10 16:52:30 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


>Description:
	All upgrade installing fail from 6.0-RELEASE, 6.1-BETA? or 6.1-RC?.

	Because the schg flag is set /var/empty directory.

	% /bin/ls -Fldao /var/empty
	dr-xr-xr-x  2 root  wheel  schg 512  4 30 18:07 /var/empty/

>How-To-Repeat:
	do upgrade install.
>Fix:

	I not tested, but perhaps ok.

--- usr.sbin/sysinstall/installUpgrade.c.orig	Sat Dec  3 23:36:26 2005
+++ usr.sbin/sysinstall/installUpgrade.c	Thu May  4 23:46:55 2006
@@ -290,7 +290,7 @@
 	}
 
 	msgNotify("chflags'ing old binaries - please wait.");
-	(void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /usr/lib /usr/libexec /kernel*");
+	(void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /usr/lib /usr/libexec /var /kernel*");
 
 	if (file_readable("/kernel")) {
 	    msgNotify("Moving old kernel to /kernel.prev");
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-qa 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 4 18:09:08 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s), although I think this has already been reported. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96780 
Responsible-Changed-From-To: freebsd-qa->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Thu May 4 19:25:55 UTC 2006 
Responsible-Changed-Why:  
Grab this one too - installUpgrade.c has some other issues looking at 
that patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96780 
State-Changed-From-To: open->patched 
State-Changed-By: ceri 
State-Changed-When: Thu May 4 20:11:22 UTC 2006 
State-Changed-Why:  
Patched in -HEAD; we intend to MFC this before the release. 
Thank you. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96780 
State-Changed-From-To: patched->closed 
State-Changed-By: ceri 
State-Changed-When: Fri May 5 19:34:50 UTC 2006 
State-Changed-Why:  
Pulled back to RELENG_6 and RELENG_6_1, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96780 
>Unformatted:
