From 999767c14e45ba0d90c200354c60eda3b7aa3dc8 Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Tue, 16 Mar 2021 09:53:01 +0100 Subject: [PATCH] spec: Ensure needed crash_worker user is available during package installation Some system users are created by security-config package %post script, thus we need to ensure this package is installed and configured before we install packages containing, in our case, crash_worker-user owned files/dirs. Change-Id: I122e992936f4569cbb5f42f0f38f4ce9f5fb2100 --- packaging/crash-worker.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/crash-worker.spec b/packaging/crash-worker.spec index 043eaf8..18d8860 100644 --- a/packaging/crash-worker.spec +++ b/packaging/crash-worker.spec @@ -69,6 +69,8 @@ Requires: %{name}-dumpsystemstate-service = %{version}-%{release} %if %{with regdumper} Requires: %{name}-support-regdump = %{version}-%{release} %endif +# Ensure crash_worker user is available (created by security-config, package provides crash_worker-owned files) +Requires: security-config %description %package dumpsystemstate-config @@ -79,6 +81,8 @@ Summary: common configuration for dump_systemstate utility and bugreport- Summary: dump_systemstate utility used for dumping basic system information Requires: %{name}-dumpsystemstate-config = %{version}-%{release} Requires: %{_bindir}/buxton2ctl +# Ensure crash_worker user is available (created by security-config, package provides crash_worker-owned files) +Requires: security-config %description dumpsystemstate-util %if %{with dumpsystemstateservice} @@ -93,6 +97,8 @@ Requires: %{name}-dumpsystemstate-config = %{version}-%{release} Summary: package provides components needed to support kernel-invoked coredump handling Requires: %{name}-support-common = %{version}-%{release} Requires: minicoredumper >= 2.1.0 +# Ensure crash_worker user is available (created by security-config, package provides crash_worker-owned files) +Requires: security-config %description support-regdump %endif -- 2.7.4