-
Notifications
You must be signed in to change notification settings - Fork 182
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
Feature request: functionality to better support image build use cases #675
Comments
This is handled by daemon (even if running in no-daemon mode, then the daemon does all the work and exits). The path for the daemon can be configured in
This could be probably covered by the simulate/dry-run option RFE (not yet implemented) and the dump feature (#625, not yet finished).
We support multiple boot loaders. We could also put the boot arguments into
This could be covered by the simulate/dry-run option RFE mentioned above. @thozza do you have any comments? (IIRC you do/did something similar). |
But this would rely on |
We have a use case for tuned which involves generating images with osbuild, where tuned will only be run at the target but may not be available in the builder machine. For simpler profiles, one solution is to just create the profile name files in
/etc/tuned/active_profile
(there is already an osbuild stage for tuned), but this does not cover all use cases. For example some profiles rely on kernel parameters, which are currently not trivial to get "offline" and will only be generated after the first boot at the target, also requiring a reboot. It would be nice to be able to know those beforehand as well as skipping the need for a first reboot of the target.A workaround for this could be to run tuned-adm at image build time to generate the boot commands, but there are also currently challenges for that. If tuned-adm is run without any sort of isolation it will always look for paths like
/etc
which will be of the host. It would be nice to be able to pass something like a directory base path where it will look for$BASEDIR/etc
and$BASEDIR/usr/lib/tuned
so any profiles I create for the target can be found.This use case considers tuned-adm utilization without the tuned daemon. Having to run the daemon in the builder system is also undesirable (and even if the builder system is already running tuned, it should not be affected by building a target image). In the target it may or may not be desired to run the daemon but that should be independent.
Finally, for this sort of images, grub is not always present. Some of the current setup for the kernel parameters seem to assume that grub is present by default.
From some local experimentation, I think these are the features that could make this possible:
/etc/kernel/cmdline
to create the boot files. So if tuned will put those arguments in the grubenv this is not relevant to these systems at all.I'm not sure how much of this is feasible, any thoughts about supporting this feature? If necessary I can file separate issues but this one can be used to discuss the feasibility of this, or if some part of this is already supported but I missed it.
Thanks!
The text was updated successfully, but these errors were encountered: