Skip to content

go.mod: update osbuild/images to v0.128.0 #864

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

Merged
merged 3 commits into from
Apr 1, 2025

Conversation

achilleas-k
Copy link
Member

A major part of this update is the ability to use mount units instead of defining mountpoints in /etc/fstab.

For bootc disk images, this is always enabled [1] and requires no further configuration.

Closes #756

[1] osbuild/images@43f1a32

@achilleas-k achilleas-k requested review from ondrejbudai and mvo5 March 26, 2025 11:01
@achilleas-k
Copy link
Member Author

This is going to need changes in the test scripts that rely on the fstab stage to verify mountpoints.

@achilleas-k
Copy link
Member Author

This is going to need changes in the test scripts that rely on the fstab stage to verify mountpoints.

Tests should be passing now.

mvo5
mvo5 previously approved these changes Mar 27, 2025
Copy link
Collaborator

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Thank you, this is veyy nice! Really cool that you switched from fstab to proper mount units \o/

@@ -9,7 +9,8 @@
import pytest

import testutil
from containerbuild import build_container_fixture # pylint: disable=unused-import
from containerbuild import \
Copy link
Collaborator

Choose a reason for hiding this comment

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

(just curious) why split this line? I really don't mind, is it for aesthetics or some editor defaults?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops. That was isort. I keep it on but I need to be careful when it changes things I'm not modifying.

@achilleas-k
Copy link
Member Author

achilleas-k commented Mar 27, 2025

Missed a test.
Actually, mistyped a stage option.

@achilleas-k
Copy link
Member Author

Requires osbuild/images#1366

@achilleas-k achilleas-k force-pushed the update-images/mount-units branch from 421ebe7 to 6b3d7f6 Compare March 28, 2025 13:41
@achilleas-k achilleas-k changed the title go.mod: update osbuild/images to v0.127.0 go.mod: update osbuild/images to v0.128.0 Mar 28, 2025
@achilleas-k achilleas-k requested a review from mvo5 March 28, 2025 13:42
A major part of this update is the ability to use mount units instead of
defining mountpoints in /etc/fstab.

For bootc disk images, this is always enabled [1] and requires no
further configuration.

Closes osbuild#756

[1] osbuild/images@43f1a32
We need to import the fixtures and use them indirectly, which makes it
appear like an unused import.  Instead of disabling the linter on the
line, let's suppress the warning by using _ as the import name.

I find this nicer.
Some tests rely on reading the fstab options from the manifest to verify
that filesystems and swap partitions generate the right options.
These have been changed to instead look for
org.osbuild.systemd.unit.create stages with filenames ending in .mount
and .swap.
@achilleas-k achilleas-k force-pushed the update-images/mount-units branch from 6b3d7f6 to f496784 Compare March 28, 2025 15:45
@supakeen supakeen added this pull request to the merge queue Apr 1, 2025
Copy link
Collaborator

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Thank you!

Merged via the queue into osbuild:main with commit b3f6981 Apr 1, 2025
10 of 13 checks passed
@achilleas-k achilleas-k deleted the update-images/mount-units branch April 1, 2025 11:33
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.

switch from /etc/fstab to root flags karg
3 participants