]> git.proxmox.com Git - systemd.git/commitdiff
use systemd-sysusers instead of adduser
authorJohannes Schauer Marin Rodrigues <josch@debian.org>
Fri, 19 Aug 2022 13:55:44 +0000 (15:55 +0200)
committerJohannes Schauer Marin Rodrigues <josch@debian.org>
Fri, 19 Aug 2022 13:55:49 +0000 (15:55 +0200)
This allows dropping the dependency on adduser (reducing the dependency
set) and in turn allows for DPKG_ROOT support of systemd.

debian/control
debian/systemd.postinst

index ef84497120eedf1b740e1fb7e932bdda5e60fcc2..a1a223b584df26b3d175c05299c9d3b61a2b1ffb 100644 (file)
@@ -90,7 +90,6 @@ Depends: ${shlibs:Depends},
          ${misc:Depends},
          libsystemd0 (= ${binary:Version}),
          mount,
-         adduser,
 Conflicts: consolekit,
            libpam-ck-connector,
            systemd-shim,
index 43ee491b3b0714700c14a53f10f66eee48268461..8e4b6903d129089e9af5387395449befc649bf28 100644 (file)
@@ -54,10 +54,7 @@ fi
 systemd-machine-id-setup
 
 # Setup system users and groups
-addgroup --quiet --system systemd-journal
-
-adduser --quiet --system --group --no-create-home --home /run/systemd \
-    --gecos "systemd Network Management" systemd-network
+systemd-sysusers systemd-journal.conf systemd-network.conf
 
 # Enable persistent journal, in auto-mode, by default on new installs and upgrades
 if dpkg --compare-versions "$2" lt "244.1-2~"; then