Skip to content

fedora: switch to erofs for fedora >= 43 - #1239

Closed
supakeen wants to merge 1 commit into
osbuild:mainfrom
supakeen:fedora-erofs
Closed

supakeen wants to merge 1 commit into
osbuild:mainfrom
supakeen:fedora-erofs

Conversation

@supakeen

@supakeen supakeen commented Feb 20, 2025 •

Copy link
Copy Markdown
Member

See the change proposal 1. This switches our the Fedora IoT Anaconda installer, the Fedora image-installer, and our current live installer implementation over to use EroFS as per the accepted change proposal 2.


Note: this change applies to Fedora 43 since I do not want to land this change too late in the cycle in case it causes problems as it's not strictly necessary, just nice.

@supakeen

supakeen commented Feb 20, 2025 •

Copy link
Copy Markdown
Member Author

Needs @pcdubs's approval since as it involves Fedora IoT deliverables. If we don't want to do this because Fedora IoT is not live media (though I feel it's good to test this before we go through with it in RHEL 10) then I can back out that part :)

bcl
bcl previously approved these changes Feb 21, 2025

@bcl bcl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good!

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

The new code is repeated 3 times and could be a local function in the file.

I'm not approving since @supakeen wants @pcdubs to sign off on this first.

@supakeen

Copy link
Copy Markdown
Member Author

LGTM.

The new code is repeated 3 times and could be a local function in the file.

I'm not approving since @supakeen wants @pcdubs to sign off on this first.

Thanks, I was prefering to keep locality here ("each image type is its own self-contained function") though I'm now second guessing that.

@bcl

bcl commented Feb 25, 2025

Copy link
Copy Markdown

Thanks, I was prefering to keep locality here ("each image type is its own self-contained function") though I'm now second guessing that.

Don't second guess yourself, it makes it easier to read :)

@supakeen

Copy link
Copy Markdown
Member Author

Re-targeted to Fedora 43 as beta freeze has started and it seems like a bad plan to do this between beta and final :)

@supakeen supakeen changed the title fedora: switch to erofs for fedora >= 42 fedora: switch to erofs for fedora >= 43 Feb 25, 2025
bcl
bcl previously approved these changes Feb 25, 2025

@bcl bcl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ack

ondrejbudai
ondrejbudai previously approved these changes Feb 26, 2025
thozza
thozza previously approved these changes Feb 27, 2025
Comment on lines +409 to +432
if common.VersionGreaterThanOrEqual(img.OSVersion, VERSION_ROOTFS_EROFS) {
img.RootfsCompression = "lzma"
img.RootfsType = manifest.ErofsRootfs
} else if common.VersionGreaterThanOrEqual(img.OSVersion, VERSION_ROOTFS_SQUASHFS) {
img.RootfsCompression = "lz4"
img.RootfsType = manifest.SquashfsRootfs
} else {
img.RootfsCompression = "lz4"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@pcdubs

pcdubs commented Mar 13, 2025

Copy link
Copy Markdown

LGTM (apologies for the delayed response).

@supakeen
supakeen dismissed stale reviews from thozza, ondrejbudai, and bcl via 0950e30 March 13, 2025 16:16
@supakeen
supakeen enabled auto-merge March 13, 2025 16:17
@supakeen

Copy link
Copy Markdown
Member Author

Rebased, and we have ack from Paul so this is ready to go in :)

@supakeen

Copy link
Copy Markdown
Member Author

I can't really tell on what the CI is failing, we end up with:

Job's log exceeded limit of 4194304 bytes.
Job execution will continue but no more output will be collected.

Because it seems erofs outputs a line of text for each file that's being compressed?

See the change proposal [1]. This switches our the Fedora IoT
Anaconda installer, the Fedora image-installer, and our current
live installer implementation over to use EroFS as per the
accepted change proposal [2].

Note that while the change targets Fedora 42 the commit here applies to
Fedora 43.

[1]: https://fedoraproject.org/wiki/Changes/EROFSforLiveMedia
[2]: https://pagure.io/fesco/issue/3356

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen

Copy link
Copy Markdown
Member Author

Closing this PR since it's totally out of line now with all the yaml-ification. I might revisit it later.

@supakeen supakeen closed this May 20, 2025
auto-merge was automatically disabled May 20, 2025 08:02

Pull request was closed

mvo5 added a commit to mvo5/images that referenced this pull request May 20, 2025
This commit makes the `manifest.RootfsType` marshallable via
JSON/YAML so that we can use it in the image defintions.

This will be useful for:
osbuild#1239
osbuild#1537
mvo5 added a commit to mvo5/images that referenced this pull request May 21, 2025
This commit makes the `manifest.RootfsType` marshallable via
JSON/YAML so that we can use it in the image defintions.

This will be useful for:
osbuild#1239
osbuild#1537
github-merge-queue Bot pushed a commit that referenced this pull request May 21, 2025
This commit makes the `manifest.RootfsType` marshallable via
JSON/YAML so that we can use it in the image defintions.

This will be useful for:
#1239
#1537
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.

6 participants