NetBSD Problem Report #60932

From martin@last-of-the-heroes.duskware.de  Tue Oct 27 12:15:57 2026
Return-Path: <martin@last-of-the-heroes.duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BC2A01A923B
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Oct 2026 12:15:57 +0000 (UTC)
Message-Id: <20261027121553.CCC90E1FCFC@mail.duskware.de>
Date: Tue, 27 Oct 2026 13:15:48 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: postinstall obsolete + opensslcertsrehash interact badly
X-Send-Pr-Version: 3.95
X-From4GNATS: "martin@NetBSD.org via gnats" <gnats-admin@NetBSD.org>

>Number:         60932
>Category:       bin
>Synopsis:       postinstall obsolete + opensslcertsrehash interact badly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 27 12:20:00 +0000 2026
>Closed-Date:    
>Last-Modified:  Wed Oct 28 18:10:01 +0000 2026
>Originator:     Martin Husemann
>Release:        NetBSD 11.99.9
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD last-of-the-heroes.duskware.de 11.99.9 NetBSD 11.99.9 (GENERIC) #418: Tue Oct 20 09:37:30 CEST 2026 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/landisk/compile/GENERIC landisk
Architecture: sh3el
Machine: landisk
>Description:

I updated several machines from -current as of last week to -current as of
today (before and after the root cert changes).

After updating the sets, I ran postinstall check.

As expected it asked me to run

	postinstall ... fix opensslcertsrehash obsolete

and I did that. Out of curiosity I ran

	postinstall ... check opensslcertsrehash

again and it asked again for a fix, so I did:

	postinstall ... fix opensslcertsrehash

and then again ran "check" - this time all was fine.
On one of the machines I stoped after the first fix and /etc/openssl/certs
was completely empty.

On the last machine I tried to run the "fix obsolete" part first,
and then the "fix opensslcertsrehash", which went fine and didn't need
any further rehash or fix steps.

>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Wed, 28 Oct 2026 18:08:11 +0000
State-Changed-Why:
fixed in HEAD, needs pullup-11 and pullup-10


From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60932 CVS commit: src/usr.sbin/postinstall
Date: Wed, 28 Oct 2026 18:06:50 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Wed Oct 28 18:06:50 UTC 2026

 Modified Files:
 	src/usr.sbin/postinstall: postinstall.in

 Log Message:
 postinstall(8): Do obsolete _then_ opensslcertsrehash.

 Otherwise any certificates removed by an update will remain in
 /etc/openssl/certs/ca-certificates.crt, which is very bad!

 PR bin/60932: postinstall obsolete + opensslcertsrehash interact badly


 To generate a diff of this commit:
 cvs rdiff -u -r1.72 -r1.73 src/usr.sbin/postinstall/postinstall.in

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.