diff --git a/plymouth.changes b/plymouth.changes index 2832430..44987a8 100644 --- a/plymouth.changes +++ b/plymouth.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 08 14:01:51 UTC 2024 - Cliff Zhao + +- Update plymouth.spec: Add service in installation, remove service + in uninstallation based on systemd requirement. + ------------------------------------------------------------------- Mon Aug 28 03:33:51 UTC 2023 - Cliff Zhao diff --git a/plymouth.spec b/plymouth.spec index 4c166f4..4ab3e31 100644 --- a/plymouth.spec +++ b/plymouth.spec @@ -85,7 +85,7 @@ Requires: %{name}-branding Requires: systemd >= 186 Requires(post): coreutils Requires(post): plymouth-scripts = %{version} -Requires(postun):coreutils +Requires(postun): coreutils Suggests: plymouth-plugin-label Provides: bootsplash = 3.5 Obsoletes: bootsplash < 3.5 @@ -407,10 +407,118 @@ mv %{buildroot}%{_sysconfdir}/logrotate.d/bootlog %{buildroot}%{_distconfdir}/lo # Split lang to seperate package. %find_lang %{name} +%pre +%service_add_pre plymouth-halt.service +%service_add_pre plymouth-switch-root-initramfs.service +%service_add_pre plymouth-start.service +%service_add_pre plymouth-switch-root.service +%service_add_pre plymouth-kexec.service +%service_add_pre plymouth-switch-root-initramfs.service +%service_add_pre plymouth-quit-wait.service +%service_add_pre plymouth-quit.service +%service_add_pre plymouth-halt.service +%service_add_pre plymouth-kexec.service +%service_add_pre plymouth-poweroff.service +%service_add_pre plymouth-quit-wait.service +%service_add_pre plymouth-quit.service +%service_add_pre plymouth-read-write.service +%service_add_pre plymouth-reboot.service +%service_add_pre plymouth-start.service +%service_add_pre plymouth-switch-root-initramfs.service +%service_add_pre plymouth-switch-root.service +%service_add_pre plymouth-poweroff.service +%service_add_pre plymouth-switch-root-initramfs.service +%service_add_pre plymouth-reboot.service +%service_add_pre plymouth-switch-root-initramfs.service +%service_add_pre plymouth-read-write.service +%service_add_pre plymouth-start.service +%service_add_pre systemd-ask-password-plymouth.path +%service_add_pre systemd-ask-password-plymouth.service + %post +%service_add_post plymouth-halt.service +%service_add_post plymouth-switch-root-initramfs.service +%service_add_post plymouth-start.service +%service_add_post plymouth-switch-root.service +%service_add_post plymouth-kexec.service +%service_add_post plymouth-switch-root-initramfs.service +%service_add_post plymouth-quit-wait.service +%service_add_post plymouth-quit.service +%service_add_post plymouth-halt.service +%service_add_post plymouth-kexec.service +%service_add_post plymouth-poweroff.service +%service_add_post plymouth-quit-wait.service +%service_add_post plymouth-quit.service +%service_add_post plymouth-read-write.service +%service_add_post plymouth-reboot.service +%service_add_post plymouth-start.service +%service_add_post plymouth-switch-root-initramfs.service +%service_add_post plymouth-switch-root.service +%service_add_post plymouth-poweroff.service +%service_add_post plymouth-switch-root-initramfs.service +%service_add_post plymouth-reboot.service +%service_add_post plymouth-switch-root-initramfs.service +%service_add_post plymouth-read-write.service +%service_add_post plymouth-start.service +%service_add_post systemd-ask-password-plymouth.path +%service_add_post systemd-ask-password-plymouth.service %{?regenerate_initrd_post} +%preun +%service_del_preun plymouth-halt.service +%service_del_preun plymouth-switch-root-initramfs.service +%service_del_preun plymouth-start.service +%service_del_preun plymouth-switch-root.service +%service_del_preun plymouth-kexec.service +%service_del_preun plymouth-switch-root-initramfs.service +%service_del_preun plymouth-quit-wait.service +%service_del_preun plymouth-quit.service +%service_del_preun plymouth-halt.service +%service_del_preun plymouth-kexec.service +%service_del_preun plymouth-poweroff.service +%service_del_preun plymouth-quit-wait.service +%service_del_preun plymouth-quit.service +%service_del_preun plymouth-read-write.service +%service_del_preun plymouth-reboot.service +%service_del_preun plymouth-start.service +%service_del_preun plymouth-switch-root-initramfs.service +%service_del_preun plymouth-switch-root.service +%service_del_preun plymouth-poweroff.service +%service_del_preun plymouth-switch-root-initramfs.service +%service_del_preun plymouth-reboot.service +%service_del_preun plymouth-switch-root-initramfs.service +%service_del_preun plymouth-read-write.service +%service_del_preun plymouth-start.service +%service_del_preun systemd-ask-password-plymouth.path +%service_del_preun systemd-ask-password-plymouth.service + %postun +%service_del_postun plymouth-halt.service +%service_del_postun plymouth-switch-root-initramfs.service +%service_del_postun plymouth-start.service +%service_del_postun plymouth-switch-root.service +%service_del_postun plymouth-kexec.service +%service_del_postun plymouth-switch-root-initramfs.service +%service_del_postun plymouth-quit-wait.service +%service_del_postun plymouth-quit.service +%service_del_postun plymouth-halt.service +%service_del_postun plymouth-kexec.service +%service_del_postun plymouth-poweroff.service +%service_del_postun plymouth-quit-wait.service +%service_del_postun plymouth-quit.service +%service_del_postun plymouth-read-write.service +%service_del_postun plymouth-reboot.service +%service_del_postun plymouth-start.service +%service_del_postun plymouth-switch-root-initramfs.service +%service_del_postun plymouth-switch-root.service +%service_del_postun plymouth-poweroff.service +%service_del_postun plymouth-switch-root-initramfs.service +%service_del_postun plymouth-reboot.service +%service_del_postun plymouth-switch-root-initramfs.service +%service_del_postun plymouth-read-write.service +%service_del_postun plymouth-start.service +%service_del_postun systemd-ask-password-plymouth.path +%service_del_postun systemd-ask-password-plymouth.service %{?regenerate_initrd_post} %if 0%{?suse_version} > 1500 %service_del_postun_without_restart plymouth-halt.service plymouth-kexec.service plymouth-poweroff.service plymouth-quit-wait.service plymouth-quit.service plymouth-read-write.service plymouth-reboot.service plymouth-start.service