Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate initrd after selinux-autorelabel installation #35

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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