.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=488
This commit is contained in:
parent
55adb0f63d
commit
713ba36546
@ -46,6 +46,13 @@ if [ $FIRST_ARG -eq 1 ]; then \
|
|||||||
touch "/var/lib/systemd/migrated/$sysv_service" || : \
|
touch "/var/lib/systemd/migrated/$sysv_service" || : \
|
||||||
done \
|
done \
|
||||||
else \
|
else \
|
||||||
|
if [ $FIRST_ARG -gt 1 ]; then \
|
||||||
|
for service in %{?*} ; do \
|
||||||
|
if [ ! -e "/usr/lib/systemd/system/$service" ]; then \
|
||||||
|
touch "/run/rpm-%{name}-update-$service-new-in-upgrade" \
|
||||||
|
fi \
|
||||||
|
done \
|
||||||
|
fi \
|
||||||
for service in %{?*} ; do \
|
for service in %{?*} ; do \
|
||||||
sysv_service=${service%.*} \
|
sysv_service=${service%.*} \
|
||||||
if [ ! -e "/var/lib/systemd/migrated/$sysv_service" ]; then \
|
if [ ! -e "/var/lib/systemd/migrated/$sysv_service" ]; then \
|
||||||
@ -74,6 +81,13 @@ if [ -n "$services_to_migrate" ]; then \
|
|||||||
/usr/sbin/systemd-sysv-convert --apply $services_to_migrate >/dev/null 2>&1 || : \
|
/usr/sbin/systemd-sysv-convert --apply $services_to_migrate >/dev/null 2>&1 || : \
|
||||||
elif [ $FIRST_ARG -eq 1 ]; then \
|
elif [ $FIRST_ARG -eq 1 ]; then \
|
||||||
/usr/bin/systemctl preset %{?*} >/dev/null 2>&1 || : \
|
/usr/bin/systemctl preset %{?*} >/dev/null 2>&1 || : \
|
||||||
|
elif [ $FIRST_ARG -gt 1 ]; then \
|
||||||
|
for service in %{?*} ; do \
|
||||||
|
if [ -e "/run/rpm-%{name}-update-$service-new-in-upgrade" ]; then \
|
||||||
|
rm -f "/run/rpm-%{name}-update-$service-new-in-upgrade" \
|
||||||
|
/usr/bin/systemctl preset "$service" >/dev/null 2>&1 || : \
|
||||||
|
fi \
|
||||||
|
done \
|
||||||
fi \
|
fi \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
|
@ -15,6 +15,11 @@ Fri Jan 17 12:24:13 UTC 2014 - werner@suse.de
|
|||||||
sure that required dependencies are handles as required ones.
|
sure that required dependencies are handles as required ones.
|
||||||
This should fix bnc#858864 and bnc#857204.
|
This should fix bnc#858864 and bnc#857204.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 16 16:08:00 UTC 2014 - lnussel@suse.de
|
||||||
|
|
||||||
|
- apply preset also to service files that are new in upgrade
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 15 14:11:02 UTC 2014 - werner@suse.de
|
Wed Jan 15 14:11:02 UTC 2014 - werner@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user