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

osbuild: extract genMountsDevicesFromPt helper #385

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Jan 18, 2024

The org.osbuild.copy stage requires mounts/devices options when
run. Those will also be required by the coming bootupd stage.
To prepare for this the helper is extracted and tests added.

There is a second commit that extracts a common testdisk.MakeFakePartitionTable("/", "/boot") helper which is not strictly needed but feels nicer.

This is the first split out of #381

The `org.osbuild.copy` stage requires mounts/devices options when
run. Those will also be required by the coming `bootupd` stage.
To prepare for this the helper is extracted and tests added.
Both the osbuild and the image package need/will need a helper
to make fake partition tables. So this creates a new `testdisk` package
that contains a helper for this. It can not be part of the existing
`test` package because of circular imports.
@mvo5 mvo5 requested a review from achilleas-k January 18, 2024 09:21
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!!

@achilleas-k achilleas-k added this pull request to the merge queue Jan 18, 2024
Merged via the queue into osbuild:main with commit b4905b5 Jan 18, 2024
10 checks passed
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