🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4360

Bug#1153884: postgresql-common: tmpfiles.d runs before sysusers.d on fresh install, leaving /var/log/postgresql owned by root

#4360
From: Christoph Berg
Date: Fri, 13 Nov 2026 11:40
15 lines
2274 bytes
Control: reassign -1 debhelper
Control: severity -1 important
Control: affects -1 postgresql-common

Re: Ben Prew
> The cause is the order of the autogenerated snippets in postinst: the
> dh_installtmpfiles snippet runs "systemd-tmpfiles --create
> postgresql-common.conf" before the dh_installsysusers snippet creates
> the postgres user. systemd-tmpfiles cannot resolve the user, and the
> "|| true" hides the failure:

Ouch, thanks for reporting that. I'm forwarding this to debhelper, but
will also add a workaround to postgresql-common.

Christoph
Technical Details
Message-ID: <NYXNn-bCzF-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NYXNn-bCzF-7@gated-at.bofh.it> <NYXNn-bCzF-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Christoph Berg <myon@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153884: postgresql-common: tmpfiles.d runs before sysusers.d on fresh install, leaving /var/log/postgresql owned by root
Date: Fri, 13 Nov 2026 12:40:01 +0100
Message-ID: <NYXNn-bCzF-5@gated-at.bofh.it>
References: <NYXNn-bCzF-7@gated-at.bofh.it> <NYXNn-bCzF-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 13 11:35:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Christoph Berg <myon@debian.org>, 1153884@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: team+postgresql@tracker.debian.org
X-Debian-Pr-Message: followup 1153884
X-Debian-Pr-Package: postgresql-common
X-Debian-Pr-Source: postgresql-common
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: myon
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002368
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 15
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 13 Nov 2026 12:32:11 +0100
X-Original-Message-ID: <avb1OxJrInJQ1Jzd@msg.df7cb.de>
X-Original-References: <CA+cXoSNmg=7NaKaw2ESYqCQbqmVqD7osM=-FS_hnSuHHT1yvsg@mail.gmail.com> <CA+cXoSNmg=7NaKaw2ESYqCQbqmVqD7osM=-FS_hnSuHHT1yvsg@mail.gmail.com>