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 rewriting of AllowedCPUs is incompatible with ostree #284

Closed
alexlarsson opened this issue Nov 28, 2023 · 0 comments · Fixed by #285
Closed

rpm %post rewriting of AllowedCPUs is incompatible with ostree #284

alexlarsson opened this issue Nov 28, 2023 · 0 comments · Fixed by #285
Assignees

Comments

@alexlarsson
Copy link
Collaborator

The %post script that rewrites the AllowedCPUs line based on nproc is not gonna work on any kind of image-based system like ostree. The post-install script will be run on the image compose machine, not on the final target, so it will not be correct.

I think the right approach here is to make quadlet support a *.d extension directory (like systemd does), and then you would drop a custom qm.container.d/10-allowedcpu.conf on the target machine.

Actually, maybe this already works if you instead drop a systemd snippet like qm.server.d/10-allowedcpu.conf?

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

Successfully merging a pull request may close this issue.

2 participants