From 07e6eb419487533cbed2c0f0b0356c1000ff2cc1642fc706752c4639ce7743f6 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Mon, 13 May 2013 17:06:15 +0000 Subject: [PATCH] Accepting request 175211 from home:elvigia:branches:Base:System - Not only reboot.service is prefixed with systemd- currently but also kexec,halt,poweroff. OBS-URL: https://build.opensuse.org/request/show/175211 OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=105 --- plymouth.changes | 6 ++++++ plymouth.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plymouth.changes b/plymouth.changes index 2b2e850..63bab67 100644 --- a/plymouth.changes +++ b/plymouth.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun May 12 21:56:30 UTC 2013 - crrodriguez@opensuse.org + +- Not only reboot.service is prefixed with systemd- currently + but also kexec,halt,poweroff. + ------------------------------------------------------------------- Mon Apr 22 19:47:44 UTC 2013 - crrodriguez@opensuse.org diff --git a/plymouth.spec b/plymouth.spec index 334380d..e51de49 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -365,7 +365,8 @@ cp %{buildroot}/%{_datadir}/plymouth/plymouthd.defaults %{buildroot}/%{_sysconfd mkdir -p %{buildroot}/lib/mkinitrd/scripts install -t %{buildroot}/lib/mkinitrd/scripts \ scripts/{setup,boot}-plymouth*.sh -find %{buildroot} -type f -name "*.service" -print -exec sed -i -e 's@prefdm.service@display-manager.service@g' -e 's@reboot.service@systemd-reboot.service@g' {} + +find %{buildroot} -type f -name "*.service" -print -exec sed -i -e 's@prefdm.service@display-manager.service@g' \ +-e 's@\<\(reboot\|halt\|poweroff\|kexec\).service\>@systemd-\1.service@g' {} + %post if [ ! -e /.buildenv ]; then