root mount options from /etc/fstab are not taken into account anymore with composefs (symptom: systemd-remount-fs.service fails to start) #72
Labels
No labels
docs
kind
bug
kind
enhancement
kind
package-request
release
f40
release
f41
release
f42
release
f43
release
f44
release
f45
release/rawhide
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
atomic-desktops/tracker#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
The
systemd-remount-fs.serviceservice fails to start:Workaround
If you want to keep using or enable on-demand zstd compression for your main btrfs partition, update your kernel arguments to match what's in your
/etc/fstab:Then comment the entry for
/in your/etc/fstab. Make sure that any future changes to the root mount point options are added to the kernel command line.Reboot for the changes to apply.
Original issue
With composefs in F42 (https://gitlab.com/fedora/ostree/sig/-/issues/35), the mount options set for the root filesystem in /etc/fstab are not taken into account anymore as
/is now an overlay mount point.One notable option on default Atomic Desktops installation in zstd compression for btrfs: https://fedoraproject.org/wiki/Changes/BtrfsTransparentCompression
Options:
/etc/fstaboptions to the kernel command line to migrate existing systems./proc,/sys, etc. custom mount options would also be ignored./.Refrences & Bugzillas
See:
changed the description
I was actually thinking about doing this via https://github.com/bootc-dev/bootc/pull/1157
Did a first try at a systemd patch in https://github.com/systemd/systemd/compare/main...travier:systemd:remount-fs-sysroot, but from testing so far, this did not work (i.e. this did not re-mount /sysroot with zstd compression on my Silverblue 42 installation). Not sure why, maybe because there are multiple mount points already? But this was apparently working before composefs, so I don't know where the issue is.
changed title from root mount options from /etc/fstab are not taken into account anymore with composefs to root mount options from /etc/fstab are not taken into account anymore with composefs{+ (symptom:
systemd-remount-fs.servicefails to start)+}changed the description
changed the description
changed the description
changed the description
changed the description
changed the description
changed the description
See the discussion in:
mentioned in issue #35
This is my simple workaround that I use in my container builds for Fedora Atomic Desktops. Maybe it doesn't make much sense, though.
Copy the following file to
/usr/libexec/.Copy the following file to
/usr/lib/systemd/system/.i do not expect an answer.
why was this change EVEN made? it broke a working project. and now, a year later, there is no fix, the whateverfs is not rolled back, btrfs is not replaced with something that works, there is nobody assigned.
i have tried the workaround and it broke my system.
so do not try the /fix/ unless you want to spend the next day recovering from backups.
The change that triggered this bug is https://fedoraproject.org/wiki/Changes/ComposefsAtomicDesktops.
This issue should not break your system. In the most common case, it will only disables Btrfs compression for new files.
Please tell us what commands you tried as a workaround.
So I think the path forward for this issue is:
/etc/fstabinto real kargs