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
This commit is contained in:
Raymond Wooninck 2013-05-13 17:06:15 +00:00 committed by Git OBS Bridge
parent 635cec0fdb
commit 07e6eb4194
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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