Subject: Re: upgrading with sysinst: /usr/sbin/postinstall not found
To: Geert Hendrickx <geert.hendrickx@ua.ac.be>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-users
Date: 09/01/2005 11:19:43
--RTD9Hr/VfB+mRRII
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 01, 2005 at 10:59:09AM +0200, Geert Hendrickx wrote:
> 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. =20
>=20
> After untarring the sets, sysinst says:=20
>=20
>      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
>=20
> 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? =
=20

Nasty.

> --- 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 @@
> =20
>  	if (update && set =3D=3D SET_ETC) {
>  		run_program(RUN_DISPLAY | RUN_CHROOT,
> -			"/usr/sbin/postinstall -s /.sysinst -d / fix");
> +			"/etc/postinstall -s /.sysinst -d / fix");
>  	}
> =20
>  	tarstats.nsuccess++;

That's incorrect, as it would make sysinst use the old postinstall.

I've sent a pull-up with the correct patch (which consists in reversing
a chunk of rev. 1.117.2.4.2.1).

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--RTD9Hr/VfB+mRRII
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQxbHr9goQloHrPnoAQKH8Qf6ArGro5IrIz+KrGzZm1NBxiSGgoaQXs+Y
zQRDlnl83eK/fK3axDAJLviR6kaRNTNjZbkiLNlkGY2SccMHUeWKBUj6/BonhrQy
i5o1eFKelvotN9yxy+PJWs5iiZBHbNwR1xx4NICF9iitwG2EAo692FpFolWX5510
j3maa78lz7vQevnjddK/J+qMBML7mml0DAB7jrtjA7osLcxWojEDfEl7yyX3VCu3
Fkm7zDjGzd4H5lWMwnJeFz3i39rSH0AA0m0Yb0eAq+XCFp0EhhLZkJ24Z+2Kta0o
fidNMTV2RypTHA4v/POD+RCTtCaq+5qjsANyHmKewhKAaSrcvlx8KQ==
=6UkH
-----END PGP SIGNATURE-----

--RTD9Hr/VfB+mRRII--