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

Add a context manager for dracut #1151

Merged
merged 1 commit into from May 25, 2021
Merged

Add a context manager for dracut #1151

merged 1 commit into from May 25, 2021

Conversation

bcl
Copy link
Contributor

@bcl bcl commented May 24, 2021

dracut needs a reasonable chroot environment in order to run correctly.
This adds the DracutChroot context manager that sets up and tears down
mounts inside the root directory tree.

Switch to using it in creator.rebuild_initrds_for_live() and
TreeBuilder.rebuild_initrds()

dracut needs a reasonable chroot environment in order to run correctly.
This adds the DracutChroot context manager that sets up and tears down
mounts inside the root directory tree.

Switch to using it in creator.rebuild_initrds_for_live() and
TreeBuilder.rebuild_initrds()
@bcl
Copy link
Contributor Author

bcl commented May 24, 2021

This solves #1149

@coveralls
Copy link

Pull Request Test Coverage Report for Build 872835088

  • 8 of 50 (16.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 41.751%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/pylorax/creator.py 2 12 16.67%
src/pylorax/imgutils.py 5 21 23.81%
src/pylorax/treebuilder.py 1 17 5.88%
Totals Coverage Status
Change from base Build 814822323: -0.1%
Covered Lines: 1296
Relevant Lines: 2907

💛 - Coveralls

@bcl
Copy link
Contributor Author

bcl commented May 24, 2021

Tests only failed due to coverage, which can't be increased for this change because it involves mounting things and running dracut in a chroot. Tested manually on rawhide host with lorax and livemedia-create --make-pxe-live

@bcl bcl merged commit 322a810 into weldr:master May 25, 2021
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.

None yet

2 participants