From 20facdb1387e4c27aa3f6509d4048f04bf4a3bd12625bb9d83cd5c0d2feb5eb7 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 24 Jun 2021 10:22:57 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=46 --- sysuser-tools.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysuser-tools.spec b/sysuser-tools.spec index c1ec278..0a1962b 100644 --- a/sysuser-tools.spec +++ b/sysuser-tools.spec @@ -41,7 +41,11 @@ Group: System/Packages Requires(pre): (/usr/sbin/useradd or busybox) # prefer original shadow over busybox by default Suggests: shadow -Conflicts: systemd < 238 +# sysusers2shdow uses sysusers2shadow uses systemd-sysusers if available. And we might pass --replace to it +# --replace only appeared in systemd 238,so we want to ensure: if we have systemd, it must be recent enough +# the Requires(pre) statement is to ensure we get it at any moment recent enough, not only at the end of +# transactions, otherwise upgrades might randomly fail +Requires(pre): (systemd >= 238 if systemd) Requires: (systemd >= 238 if systemd) %description -n sysuser-shadow