public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/setup] update_services: Drop pre-allocation of users and groups, during %%post
@ 2026-06-22 15:56 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-22 15:56 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/setup
            Branch : update_services
            Commit : 3ee2a7088bb26b02948353c279fce6f811d891e9
            Author : Björn Esser <besser82@fedoraproject.org>
            Date   : 2025-02-10T11:37:33+01:00
            Stats  : +0/-14 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/setup/c/3ee2a7088bb26b02948353c279fce6f811d891e9?branch=update_services

            Log:
            Drop pre-allocation of users and groups, during %%post

This is handled by rpm during %%pre now.

See: https://pagure.io/fesco/issue/3318

Signed-off-by: Björn Esser <besser82@fedoraproject.org>

---
diff --git a/setup.spec b/setup.spec
index e85c42b..390249d 100644
--- a/setup.spec
+++ b/setup.spec
@@ -128,20 +128,6 @@ if posix.access("/usr/bin/newaliases", "x") then
     end
   end
 end
--- Ensure pre-allocated users and groups are created immediately on upgrades.
-if posix.access("/usr/bin/systemd-sysusers", "x") then
-  if rpm.spawn ~= nil then
-    rpm.spawn({"/usr/bin/systemd-sysusers"}, {stderr='/dev/null'})
-  else
-    local pid = posix.fork()
-    if pid == 0 then
-      posix.redirect2null(2)
-      posix.exec("/usr/bin/systemd-sysusers")
-    elseif pid > 0 then
-      posix.wait(pid)
-    end
-  end
-end
 -- Ensure pre-allocated tmpfiles are created immediately on upgrades.
 if posix.access("/usr/bin/systemd-tmpfiles", "x") then
   if rpm.spawn ~= nil then

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-22 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 15:56 [rpms/setup] update_services: Drop pre-allocation of users and groups, during %%post 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox