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

Generate kernel version automatically #9

Open
esyr-rh opened this issue Nov 3, 2017 · 0 comments
Open

Generate kernel version automatically #9

esyr-rh opened this issue Nov 3, 2017 · 0 comments

Comments

@esyr-rh
Copy link
Contributor

esyr-rh commented Nov 3, 2017

We can obtain it from mock environment or koji (koji list-tagged --inherit f26 --latest kernel) once we have the notion of distribution (see #2). This is especially useful in cases of building kmods for the distributions that haven't been released yet and have kernel package version changing frequently.

orosp pushed a commit that referenced this issue Jan 15, 2019
We can query the version of the kernel-devel package and use it as a
version of kernel dependency against which we are built.  That should
simplify rebuilds against Y-stream kernel.

* bin/ddiskit (default_config): Set the default value of the
spec_fle.kernel_version configuration option to an empty string.
(get_mock_kernel_version): New function.
(process_configs_for_spec): Try to detect kernel version used in the
mock environment if spec_file.kernel_version configuration option is not
set.
(check_config): Handle empty spec_file.kernel_version.
* ddiskit.1 (.SS Spec file generation): Document behaviour in case of
empty spec_file.kernel_version.
* templates/config (spec_file.kernel_version): Mention the feature.

References: #9
Signed-off-by: Eugene Syromiatnikov <[email protected]>
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