Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2221644

Summary: Enable erofs support in the RHEL kernel
Product: Red Hat Enterprise Linux 9 Reporter: Daan De Meyer <daan.j.demeyer>
Component: kernelAssignee: fs-maint Bot <fs-maint>
kernel sub component: File Systems QA Contact: Filesystem QE <fs-qe>
Status: CLOSED MIGRATED Docs Contact:
Severity: unspecified    
Priority: unspecified CC: dhowells, esandeen, mszeredi, ngompa13, swhiteho, xzhou
Version: unspecifiedKeywords: MigratedToJIRA
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-23 11:55:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daan De Meyer 2023-07-10 13:28:25 UTC
Description of problem:

I would like to put /usr on a read-only filesystem with RHEL. Currently, on RHEL/CentOS I'm forced to use squashfs as erofs support is not available (either built-in or as a module) whereas on other Fedora/Ubuntu/Debian/Arch I'm able to build erofs filesystems instead of squashfs. Enabling erofs on RHEL would bring it in line with the other distros.

Comment 1 Steve Whitehouse 2023-07-12 08:51:57 UTC
I'm not sure that I fully understand the use case here. You can always mount /usr read only, or mount a ready only block device, even if the underlying filesystem is one that is potentially writeable in other circumstances. That is independent of the choice of filesystem.

While squashfs is supported, it is only supported for one specific use case for boot, and it not a generally supported filesystem. That said, there is no reason to think that it would not work in other scenarios, just that we would not support it as such.

If you are able to give us a bit more information about your use case, we may be able to suggest a better solution.

Comment 2 Eric Sandeen 2023-07-13 19:06:51 UTC
Hi Daan - 

Generally, we don't enable new features without a business case, because they have real and ongoing costs.  In the case of a new filesystem added to the OS, there's the kernel code, userspace utilities, test infrastructure, QE, documentation, support resources etc.  If you have a TAM, or a support contact, normally an RFE like this goes through those channels for evaluation, not as a bug.

That said, it's possible that we have an upcoming internal business case for erofs, so it might also get enabled for that reason.

Thanks,
-Eric

Comment 3 Daan De Meyer 2023-07-14 07:41:47 UTC
That makes sense, I mainly opened this to help me track when it gets enabled. I didn't really expect my use case to be sufficient to enable the feature. Good to hear that red hat might have an internal use case. Is it OK to leave this issue open to help track when it gets enabled?

To describe my use case more, in systemd's CI we build images with /usr on a read-only filesystem. This works on every distribution we support developing against except CentOS because it does not have the erofs module enabled. Having erofs in CentOS would allow us to get rid of the CentOS specific override and let us just use erofs everywhere. (This is just for extra context, I don't except this to be important enough to enable erofs in CentOS).

Comment 4 Steve Whitehouse 2023-07-14 08:12:05 UTC
I'm still curious to know more. We can set any filesystem read only, so it isn't very clear why erofs is a dependency here.

Since this is systemd, that implies that it might be a special case for booting or something like that... is this likely to be a requirement for systemd going forward for some reason? Perhaps you might be able to describe what it is about this use case that means that other filesystems are not easily usable in this case.

As always, nothing is ever completely off the table, but at the same time, there are limits to what we can support and very often if we agree to support one particular feature, then that means we have to say no to something else. As such we try hard to ensure that we have the best combination of features enabled and supported, but there are some compromises that have to be made from time to time. The more info we have on the background of feature requests, the better able we are to make good decisions on which ones to support.

Comment 5 Eric Sandeen 2023-07-14 15:15:52 UTC
Reassigning this open bug to fs-maint.redhat.com as the old fs-maint mailing list has been deprecated.

Comment 6 Daan De Meyer 2023-08-04 13:39:02 UTC
Apologies, completely lost sight of this.

> Since this is systemd, that implies that it might be a special case for booting or something like that... is this likely to be a requirement for systemd going forward for some reason? Perhaps you might be able to describe what it is about this use case that means that other filesystems are not easily usable in this case.

erofs will never be a requirement for systemd. It's just that for our development images that we build locally and in CI, we have no need for a mutable /usr, so we prefer a read-only filesystem which makes the images smaller and faster to build. We prefer erofs instead of squashfs because it has a more active upstream community and supports more features.

To be clear, I don't think it makes sense to support erofs for just this use case. I consider this more as a tracking bug to find out when support becomes available because of potential other use cases for erofs.

Comment 7 RHEL Program Management 2023-09-23 11:53:00 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 8 RHEL Program Management 2023-09-23 11:55:21 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.