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

Extend rpm-ostree install to have --noscripts #4085

Open
bexelbie opened this issue Oct 12, 2022 · 3 comments
Open

Extend rpm-ostree install to have --noscripts #4085

bexelbie opened this issue Oct 12, 2022 · 3 comments

Comments

@bexelbie
Copy link

I would like to be able to install overlay rpms, like those provided by Grafana for Grafana Agent. The %post scriptlet does some things OSTree doesn't like. I think they are acceptable to do once the install of the bits is complete. A --noscripts option would let this install complete until such time as we can work with third-parties to repattern their software.

For reference, here is the %post: https://github.com/grafana/agent/blob/main/packaging/rpm/control/postinst

@cgwalters
Copy link
Member

Yeah, though with https://fedoraproject.org/wiki/Changes/OstreeNativeContainerStable note this model completely changes because we no longer try to restrict package scripts beyond what happens in a stock container build - and relatedly, in a Dockerfile today you can do e.g. rpm -Uvh --noscripts grafana.rpm.

@kurczynski
Copy link

Do you know what exactly rpm-ostree doesn't like about the Grafana Agent RPM's post-install script? Or maybe a better question is, what does rpm-ostree want the RPM's post-install script to do instead?

@bexelbie
Copy link
Author

bexelbie commented Mar 4, 2023

I haven't tested this in a while, but my recollection is that it was the chown and chmod in the attached post, but it may have been the user and group manipulation. I'll work on testing this again, but it won't be today.

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

3 participants