forked from pool/systemd-rpm-macros
- Drop enablement symlink migration support of SysV init scripts
This was announced here: https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/ OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=76
This commit is contained in:
parent
ccdcf965ab
commit
8609970ea8
@ -91,8 +91,7 @@ Suggests: systemd \
|
|||||||
%service_add_pre() \
|
%service_add_pre() \
|
||||||
if [ -x /usr/bin/systemctl ]; then \
|
if [ -x /usr/bin/systemctl ]; then \
|
||||||
for service in %{?*} ; do \
|
for service in %{?*} ; do \
|
||||||
if [ ! -e "/usr/lib/systemd/system/$service" ] && \
|
if [ ! -e "/usr/lib/systemd/system/$service" ]; then \
|
||||||
[ ! -e "/etc/init.d/${service%.*}" ]; then \
|
|
||||||
mkdir -p /run/systemd/rpm/needs-preset \
|
mkdir -p /run/systemd/rpm/needs-preset \
|
||||||
touch "/run/systemd/rpm/needs-preset/$service" \
|
touch "/run/systemd/rpm/needs-preset/$service" \
|
||||||
fi \
|
fi \
|
||||||
@ -108,8 +107,6 @@ if [ -x /usr/bin/systemctl ]; then \
|
|||||||
if [ -e "/run/systemd/rpm/needs-preset/$service" ]; then \
|
if [ -e "/run/systemd/rpm/needs-preset/$service" ]; then \
|
||||||
/usr/bin/systemctl preset "$service" || : \
|
/usr/bin/systemctl preset "$service" || : \
|
||||||
rm "/run/systemd/rpm/needs-preset/$service" || : \
|
rm "/run/systemd/rpm/needs-preset/$service" || : \
|
||||||
else \
|
|
||||||
/usr/lib/systemd/systemd-sysv-convert --apply %{?*} || : \
|
|
||||||
fi \
|
fi \
|
||||||
done \
|
done \
|
||||||
fi \
|
fi \
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 17 18:46:25 UTC 2022 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
- Drop enablement symlink migration support of SysV init scripts
|
||||||
|
|
||||||
|
This was announced here:
|
||||||
|
https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/3ERUP5ZZJ6PPA36L3HVN46BH6U6JL74O/
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 19 08:28:16 UTC 2022 - Franck Bui <fbui@suse.com>
|
Wed Jan 19 08:28:16 UTC 2022 - Franck Bui <fbui@suse.com>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user