.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=488
This commit is contained in:
parent
08d4442bb5
commit
b8e4153dce
@ -46,6 +46,13 @@ if [ $FIRST_ARG -eq 1 ]; then \
|
||||
touch "/var/lib/systemd/migrated/$sysv_service" || : \
|
||||
done \
|
||||
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 \
|
||||
sysv_service=${service%.*} \
|
||||
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 || : \
|
||||
elif [ $FIRST_ARG -eq 1 ]; then \
|
||||
/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 \
|
||||
%{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.
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user