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

EBLINUX-26196: Add support for packages to initrd-generator #9

Merged
merged 7 commits into from
Oct 9, 2024

Conversation

thir820
Copy link
Collaborator

@thir820 thir820 commented Oct 7, 2024

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.

@thir820 thir820 requested review from MofX and simone-weiss October 7, 2024 11:53
simone-weiss
simone-weiss previously approved these changes Oct 7, 2024
Copy link
Collaborator

@simone-weiss simone-weiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thir820
Copy link
Collaborator Author

thir820 commented Oct 8, 2024

@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.

simone-weiss
simone-weiss previously approved these changes Oct 8, 2024
simone-weiss
simone-weiss previously approved these changes Oct 8, 2024
@thir820
Copy link
Collaborator Author

thir820 commented Oct 8, 2024

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) =======================================================================================

@thir820
Copy link
Collaborator Author

thir820 commented Oct 8, 2024

@simone-weiss Can you please approve again? I had to push some test fixes.

@thir820 thir820 merged commit 97b6a5e into main Oct 9, 2024
1 check passed
thir820 added a commit to Elektrobit/ebcl_template that referenced this pull request Oct 15, 2024
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>
@MofX MofX deleted the EBLINUX-26196_initrd_add_packaages branch January 9, 2025 07:56
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 this pull request may close these issues.

2 participants