Subject: install/31156: postinstall looking for pf-boot in the wrong place
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: John Nemeth <jnemeth@cornerstoneservice.ca>
List: netbsd-bugs
Date: 09/05/2005 05:44:00
>Number:         31156
>Category:       install
>Synopsis:       postinstall looking for pf-boot in the wrong place
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 05 05:44:00 +0000 2005
>Originator:     John Nemeth
>Release:        NetBSD 3.99.8 20050904
>Organization:
Cornerstone Service
>Environment:
System: NetBSD P4-3679GHz 3.99.8 NetBSD 3.99.8 (GENERIC.MPACPI) #0: Sun Sep  4 06:52:15 PDT 2005  jnemeth@P4-3679GHz:/mnt/NetBSD-current/objdir/sys/arch/i386/compile/GENERIC.MPACPI i386
Architecture: i386
Machine: i386
>Description:
	/usr/sbin/postinstall, version 1.4, is looking for pf-boot
	in the source directory instead of the distribution directory.
	Note that this bug will probably also affect the upcoming
	3.0 release.
>How-To-Repeat:
	Upgrade a system using sysinst to -current as of 20050904
	and note that postinstall complains that the defaults target
	failed.
>Fix:
	Apply the following patch to src/usr.sbin/postinstall:

--- postinstall.orig	2005-09-04 21:29:02.000000000 -0700
+++ postinstall	2005-09-04 21:30:04.000000000 -0700
@@ -498,10 +498,8 @@
 	[ -n "$1" ] || err 2 "USAGE: do_defaults  fix|check"
 
 	compare_dir $1 ${SRC_DIR}/etc/defaults ${DEST_DIR}/etc/defaults 444 \
-		daily.conf monthly.conf rc.conf security.conf weekly.conf
-
-	compare_dir $1 ${SRC_DIR}/usr.sbin/pf/etc/defaults \
-		${DEST_DIR}/etc/defaults 444 pf.boot.conf
+		daily.conf monthly.conf rc.conf security.conf weekly.conf \
+		pf.boot.conf
 }
 
 #