Subject: upgrading with sysinst: /usr/sbin/postinstall not found
To: None <>
From: Geert Hendrickx <>
List: netbsd-users
Date: 09/01/2005 10:59:09
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I tried upgrading a sparc64 system from 2.1_RC1 to 2.1_RC3 today, using
sysinst with binary sets I cross-compiled and copied to the sparc64.  

After untarring the sets, sysinst says: 

     Status: Command failed
    Command: /usr/sbin/postinstall -s /.sysinst -d / fix
     Hit enter to continue
sysinst: execvp /usr/sbin/postinstall: No such file or directory

Not unusual, since postinstall is not in (/targetroot)/usr/sbin, but in
/etc !  So I guess this is a bug.  Could it please be fixed before 2.1?  


Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="sysinst.patch"

--- distrib/utils/sysinst/util.c.orig	2005-09-01 10:57:24.000000000 +0200
+++ distrib/utils/sysinst/util.c	2005-09-01 10:57:39.000000000 +0200
@@ -677,7 +677,7 @@
 	if (update && set == SET_ETC) {
 		run_program(RUN_DISPLAY | RUN_CHROOT,
-			"/usr/sbin/postinstall -s /.sysinst -d / fix");
+			"/etc/postinstall -s /.sysinst -d / fix");