Skip to content

fix: avoid installing full systemd via postgresql-common - #554

Merged
gbartolini merged 1 commit into
mainfrom
fix/avoid-full-systemd
Nov 24, 2026
Merged

gbartolini merged 1 commit into
mainfrom
fix/avoid-full-systemd

Conversation

@NiccoloFei

Copy link
Copy Markdown
Contributor

postgresql-common >= 294 (PGDG) depends on
systemd | systemd-standalone-sysusers | systemd-sysusers (and the tmpfiles equivalent).
See https://salsa.debian.org/postgresql/postgresql-common/-/commit/2bec4876f8963e601df34575200da859cae28224.

On a minimal image apt picks the first alternative, so installing PostgreSQL
now pulls in the full systemd (~95 MB).

Preinstall systemd-standalone-sysusers and systemd-standalone-tmpfiles
so the dependency is already satisfied and the full systemd is not installed.

The ordering comes from debhelper's dh_installtmpfiles.
Refer to https://bugs.debian.org/1141909.

postgresql-common >= 294 (PGDG) depends on
"systemd | systemd-standalone-sysusers | systemd-sysusers"
(and the tmpfiles equivalent).

On a minimal image apt picks the first alternative, so installing
PostgreSQL now pulls in the full systemd (~95 MB).

Preinstall systemd-standalone-sysusers and systemd-standalone-tmpfiles so
the dependency is already satisfied and the full systemd is not installed.

The ordering comes from debhelper's dh_installtmpfiles.
Refer to https://bugs.debian.org/1141909.

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
@NiccoloFei
NiccoloFei requested a review from a team as a code owner November 24, 2026 15:28
@NiccoloFei NiccoloFei changed the title fix(docker): avoid installing full systemd via postgresql-common fix: avoid installing full systemd via postgresql-common Nov 24, 2026
@gbartolini
gbartolini merged commit f1cfd57 into main Nov 24, 2026
46 checks passed
@gbartolini
gbartolini deleted the fix/avoid-full-systemd branch November 24, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants