Repository navigation
Create DOS/EFI images with mtools - #1535
Merged
Merged
Conversation
brlane-rht
requested changes
Oct 21, 2026
brlane-rht
left a comment
Contributor
There was a problem hiding this comment.
Looks pretty nice, thanks!
test-packages needs to have mtools and dosfstools added to it. The way to run tests locally is make test-in-podman which also reveals that now test_MakeKickstartISO tries to run the mkefiboot script directly, but it isn't installed in the container. So we need to add src/bin to the path first before running those tests.
| import os, tempfile, argparse | ||
| from subprocess import check_call, PIPE | ||
| from pylorax.imgutils import mkdosimg, round_to_blocks, LoopDev, DMDev, dm_detach | ||
| from pylorax.imgutils import mkhfsimg, Mount, estimate_size |
Contributor
There was a problem hiding this comment.
estimate_size needs to stay, used by mkmacboot :)
Replace the mounted mkfsimage path with mkfs.fat and mtools for DOS images. Populate root directories and grafts directly in the image, and test the writer without root.
Use the mtools-backed DOS image writer when rebuilding embedded EFI boot images and remove the unconditional root check. Keep root requirements for Apple and full EFI disk modes, and cover direct image creation and the mkksiso rebuild path.
Keep the version 38.4 root requirement as historical context, document the current mtools-based EFI update and checksum tools, and add mtools to package requirements. Regenerate the HTML and man pages.
lzap
commented
Nov 3, 2026
| test-in-copy: | ||
| rsync -a --no-perms --exclude=.git /lorax-ro/ /lorax/ | ||
| make -C /lorax/ $(RUN_TESTS) | ||
| PATH=/lorax/src/bin:$$PATH make -C /lorax/ $(RUN_TESTS) |
Contributor
Author
There was a problem hiding this comment.
Had issues with running tests locally, had to do this.
Contributor
Author
|
Fixed tests, green locally. |
Coverage Report for CI Build 41615142126Coverage increased (+1.8%) to 43.99%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Contributor
Author
|
Can I assume this will get to the next RHEL10 release? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
for PQC we would like to extend Satellite capabilities with
mkksisoworkflow. Unfortunately, the tool requires root because it usesmountto do the EFI image. However, this is not needed as RHEL already contains the user-spacemtoolsutilities.This change modifies the behavior to use it for both image types. This cannot be used for other types (e.g. Apple) so root is still needed for some use cases. There is a separate commit that aligns documentation a bit as it was a bit unclear when root is really needed.
What are my chances to get this into RHEL 10?