Skip to content

Commit

Permalink
Regenerate initrd after selinux-autorelabel installation
Browse files Browse the repository at this point in the history
ATM it's only triggered for the main package, which works on Micro, but
on TW this will be used standalone
  • Loading branch information
jsegitz committed Oct 17, 2024
1 parent 2415b7e commit d174382
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions microos-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit d174382

Please sign in to comment.