]> git.proxmox.com Git - systemd.git/commitdiff
Use systemd-sysusers to setup systemd users and groups
authorLuca Boccassi <bluca@debian.org>
Wed, 17 Feb 2021 17:50:31 +0000 (18:50 +0100)
committerLuca Boccassi <bluca@debian.org>
Fri, 28 Oct 2022 15:14:42 +0000 (16:14 +0100)
debian/control
debian/systemd-coredump.postinst
debian/systemd-journal-remote.postinst [deleted file]
debian/systemd-oomd.postinst
debian/systemd-resolved.postinst
debian/systemd-timesyncd.postinst
debian/systemd.postinst

index 5301fa4aaddadd17d094a4fbfeedd055c01aec09..3a43864fd9b57e9ca648fbe05ff40800761d7db7 100644 (file)
@@ -16,6 +16,7 @@ Homepage: https://www.freedesktop.org/wiki/Software/systemd
 Build-Depends: debhelper-compat (= 13),
                dh-exec,
                dh-sequence-installnss,
+               dh-sequence-installsysusers,
                dh-sequence-package-notes,
                pkg-config,
                xsltproc <!nodoc>,
@@ -162,7 +163,6 @@ Multi-Arch: foreign
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          systemd,
-         adduser
 Description: tools for sending and receiving remote journal logs
  This package provides tools for sending and receiving remote journal logs:
   * systemd-journal-remote
@@ -175,7 +175,6 @@ Architecture: linux-any
 Multi-Arch: foreign
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         adduser,
          systemd
 Recommends: libdw1
 Conflicts: core-dump-handler
@@ -192,7 +191,6 @@ Multi-Arch: foreign
 Priority: standard
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         adduser,
          systemd
 Breaks: systemd (<< 245.4-2~),
 Conflicts: time-daemon
@@ -432,7 +430,6 @@ Package: systemd-oomd
 Architecture: linux-any
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         adduser,
 Breaks: systemd (<< 250.2-2~)
 Replaces: systemd (<< 250.2-2~)
 Description: userspace out-of-memory (OOM) killer
@@ -506,7 +503,6 @@ Architecture: linux-any
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         adduser,
          systemd (= ${binary:Version}),
          default-dbus-system-bus | dbus-system-bus
 Recommends: libnss-myhostname,
index 1b93506d3d5293c985e76e17ce15410acc0bb58d..259c2b3515fcc146bfd4db79d3a4db30b2f2b57e 100644 (file)
@@ -3,9 +3,6 @@
 set -e
 
 if [ "$1" = configure ]; then
-    adduser --quiet --system --group --no-create-home --home /run/systemd \
-        --gecos "systemd Core Dumper" systemd-coredump
-
     # enable systemd-coredump right after package installation
     if [ -d /run/systemd/system ]; then
         systemctl daemon-reload && systemctl start systemd-coredump.socket || true
diff --git a/debian/systemd-journal-remote.postinst b/debian/systemd-journal-remote.postinst
deleted file mode 100644 (file)
index 8ef91ad..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -e
-
-adduser --quiet --system \
-        --home /run/systemd --no-create-home \
-        --gecos "systemd Journal Remote" \
-        --group systemd-journal-remote
-
-#DEBHELPER#
index d22acfc552f3834633ba71abb1d7faa03e818e67..65629b77bad08b9ed8f7c5fd9ae5ae3e530c7dd1 100644 (file)
@@ -2,8 +2,7 @@
 
 set -e
 
-adduser --quiet --system --group --no-create-home --home /run/systemd \
-    --gecos "systemd Userspace OOM Killer" systemd-oom
+#DEBHELPER#
 
 # reload dbus configuration to make the new org.freedesktop.oom1 API available
 # The org.freedesktop.oom1.conf policy references the 'systemd-oom' user, thus
@@ -11,5 +10,3 @@ adduser --quiet --system --group --no-create-home --home /run/systemd \
 if [ -d /run/systemd/system ]; then
     systemctl reload dbus || true
 fi
-
-#DEBHELPER#
index ab964c0cc9322dfe70b0b437522608a6b67dc911..07518ba80ca5801e9fc376ce4c2700ff0de1c4be 100644 (file)
@@ -20,8 +20,6 @@ _adopt_conffile() {
 
 
 if [ "$1" = configure ] && [ -z "$2" ]; then
-    adduser --quiet --system --group --no-create-home --home /run/systemd \
-        --gecos "systemd Resolver" systemd-resolve
     _adopt_conffile "${DPKG_ROOT}/etc/systemd/resolved.conf" systemd-resolved
 fi
 
index c09821689176ebf7f708e84ba5e41bd2656edf51..608f54bdc0d5795d8c32474249ca2c59bf2f6d22 100644 (file)
@@ -18,9 +18,6 @@ _adopt_conffile() {
     fi
 }
 
-adduser --quiet --system --group --no-create-home --home /run/systemd \
-    --gecos "systemd Time Synchronization" systemd-timesync
-
 if [ "$1" = configure ] && [ -z "$2" ]; then
     _adopt_conffile /etc/dhcp/dhclient-exit-hooks.d/timesyncd systemd-timesyncd
     _adopt_conffile /etc/systemd/timesyncd.conf systemd-timesyncd
index 05f643fe3e76f59fe4020460ba3e857dfd3a9563..fb24c46b48aa2e53d13132347c79def032c4782c 100644 (file)
@@ -53,9 +53,6 @@ fi
 # Create /etc/machine-id
 systemd-machine-id-setup ${DPKG_ROOT:+--root="$DPKG_ROOT"}
 
-# Setup system users and groups
-systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} 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
     mkdir -p "$DPKG_ROOT/var/log/journal"