From 41a713cc3716327d7cb43225b7f187ba1730c781ae79b79879e6b0c1c7264ce3 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 2 Jun 2021 10:58:40 +0000 Subject: [PATCH] Accepting request 895807 from home:alarrosa:branches:Base:System - When installing the systemd-presets-common-SUSE package for the first time in a new system, it might happen that some services are installed before systemd so the %systemd_pre/post macros would not work. This is handled by enabling all preset services in this package's %posttrans section but it wasn't enabling user services, just system services. Now it enables also the user services installed before this package, thus fixing boo#1186561 OBS-URL: https://build.opensuse.org/request/show/895807 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-presets-common-SUSE?expand=0&rev=38 --- systemd-presets-common-SUSE.changes | 12 ++++++++++++ systemd-presets-common-SUSE.spec | 1 + 2 files changed, 13 insertions(+) diff --git a/systemd-presets-common-SUSE.changes b/systemd-presets-common-SUSE.changes index a3d52cf..74d75d7 100644 --- a/systemd-presets-common-SUSE.changes +++ b/systemd-presets-common-SUSE.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu May 27 15:40:48 UTC 2021 - Antonio Larrosa + +- When installing the systemd-presets-common-SUSE package for the + first time in a new system, it might happen that some services + are installed before systemd so the %systemd_pre/post macros + would not work. This is handled by enabling all preset services + in this package's %posttrans section but it wasn't enabling + user services, just system services. Now it enables also the + user services installed before this package, thus fixing + boo#1186561 + ------------------------------------------------------------------- Wed Apr 7 09:38:24 UTC 2021 - Michal Suchanek diff --git a/systemd-presets-common-SUSE.spec b/systemd-presets-common-SUSE.spec index 03d2c90..01a7a14 100644 --- a/systemd-presets-common-SUSE.spec +++ b/systemd-presets-common-SUSE.spec @@ -87,6 +87,7 @@ if [ -f /run/rpm-%{name}-preset-all ]; then # Don't disable services, since this would disable the # complete network stack. systemctl preset-all --preset-mode=enable-only + systemctl preset-all --preset-mode=enable-only --global fi rm -f /run/rpm-%{name}-preset-all