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

rpm %post ordering #4993

Open
champtar opened this issue Jun 13, 2024 · 0 comments
Open

rpm %post ordering #4993

champtar opened this issue Jun 13, 2024 · 0 comments

Comments

@champtar
Copy link

champtar commented Jun 13, 2024

Describe the bug

Are rpm %post supposed to be ordered between depend packages ?

I have a package that install an SELinux module that depends on container-selinux being fully installed (ie %post finished running so semodule is done)

The spec contains:

Requires: container-selinux
...
%post
%selinux_modules_install %{_datadir}/selinux/packages/custom.cil

It fails because ordering is not enforced

Reproduction steps

see description

Expected behavior

%post and other steps are ordered based on Requires

Actual behavior

No ordering

System details

EL 9.3 / rpm-ostree-2023.7-1.el9.x86_64

Additional information

As a workaround I'm using %posttrans, but it's ok only because my rpm is only used by rpm-ostree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant