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

Support being executed at build time in a container #713

Open
cgwalters opened this issue Nov 25, 2024 · 1 comment
Open

Support being executed at build time in a container #713

cgwalters opened this issue Nov 25, 2024 · 1 comment

Comments

@cgwalters
Copy link

I work on Fedora bootc and RHEL Image Mode. We got a bug report that https://src.fedoraproject.org/rpms/ec2-hibinit-agent fails to install at container build time.

This is because its %post ends up invoking tuned:
https://src.fedoraproject.org/rpms/ec2-hibinit-agent/blob/rawhide/f/ec2-hibinit-agent.spec#_126

I think it'd make sense to change tuned to ensure it can work in a "oneshot" mode, without being a daemon. This would entail it basically just writing the files and being done. Note that kernel arguments would need to use bootc kargs in this case.

@yarda
Copy link
Contributor

yarda commented Nov 26, 2024

As a workaround you could either stop TuneD deamon (if runing), enable the no daemon (one shot) mode in /etc/tuned/tuned-main.conf, set daemon = 0, run tuned-adm profile virtual-guest, disable the one shot mode in the etc/tuned/tuned-main.conf by returning daemon = 1,

or alternatively you could emulate the tuned-adm behavior and write the active profile setting yourself without starting the daemon (but it's unsupported):

# echo  virtual-guest > /etc/tuned/active_profile
# echo manual > /etc/tuned/profile_mode

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

2 participants