diff --git a/microos-tools.spec b/microos-tools.spec index 94ea2d3..79bd72a 100644 --- a/microos-tools.spec +++ b/microos-tools.spec @@ -69,20 +69,15 @@ This package contains tools to make developing of MicroOS easier. %pre %service_add_pre setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service -%post -%{regenerate_initrd_post} -%service_add_post setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service - %preun %service_del_preun setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service +%post +%service_add_post setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service + %postun -%{regenerate_initrd_post} %service_del_postun setup-systemd-proxy-env.service setup-systemd-proxy-env.path printenv.service -%posttrans -%{regenerate_initrd_posttrans} - %pre -n microos-devel-tools %service_add_pre microos-ro.service @@ -95,6 +90,15 @@ This package contains tools to make developing of MicroOS easier. %postun -n microos-devel-tools %service_del_postun microos-ro.service +%post -n selinux-autorelabel +%{regenerate_initrd_post} + +%postun -n selinux-autorelabel +%{regenerate_initrd_post} + +%posttrans -n selinux-autorelabel +%{regenerate_initrd_posttrans} + %files %dir %{_sysconfdir}/selinux %config %{_sysconfdir}/selinux/fixfiles_exclude_dirs