-
Notifications
You must be signed in to change notification settings - Fork 5
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
EBLINUX-26196: Add support for packages to initrd-generator #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, once merged I will update https://elektrobit.github.io/ebcl_template/tools/initrd.html
@simone-weiss @MofX Can you please review again, I had to do some changes to ensure that the kernel and dependencies are not downloaded and extracted. |
Finally all tests passed: ebcl@d7d9d6e6fba8:/build/ebcl_build_tools$ pytest
============================================================================================ test session starts ============================================================================================
platform linux -- Python 3.10.12, pytest-8.3.3, pluggy-1.5.0
rootdir: /build/ebcl_build_tools
configfile: pyproject.toml
testpaths: tests
plugins: libtmux-0.37.0, cov-5.0.0
collected 73 items
tests/test_apt.py ....... [ 9%]
tests/test_boot.py .. [ 12%]
tests/test_cache.py .... [ 17%]
tests/test_config.py ..... [ 24%]
tests/test_deb.py ... [ 28%]
tests/test_dependency.py .. [ 31%]
tests/test_fake.py .... [ 36%]
tests/test_files.py ................... [ 63%]
tests/test_initrd.py ........ [ 73%]
tests/test_proxy.py ....... [ 83%]
tests/test_root.py ....... [ 93%]
tests/test_version.py ..... [100%]
====================================================================================== 73 passed in 694.53s (0:11:34) ======================================================================================= |
@simone-weiss Can you please approve again? I had to push some test fixes. |
Update docs to reflect new handling of packages parameter. Related to: Elektrobit/ebcl_build_tools#9 --------- Signed-off-by: Thomas Irgang <148551277+thir820@users.noreply.github.com> Co-authored-by: Jörg Vehlow <github@jv-coder.de>
The initrd-generator shall allow downloading and extracting packages, including dependencies.
This is necessary to provide an easy way to add additional tools to the initrd.img, without requiring a full debootstrap environment as a base.
The user is responsible to ensure that the tools work as expected. The tooling only ensures to download the given packages, including dependencies, and extracts them, but doesn't run any install scripts.