You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
systemd-remount-fs.service: Failed with result 'exit-code' when F2FS is used as root partitition #26763
Seeing the service up and running by default without using any of the mentioned workarounds from the Arch Wiki. I've verified that the mentioned workarounds indeed work though.
Unexpected behaviour you saw
❯ sudo systemctl status systemd-remount-fs.service
× systemd-remount-fs.service - Remount Root and Kernel File Systems
Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; enabled-runtime; preset: disabled)
Active: failed (Result: exit-code) since Sat 2023-03-11 21:46:51 CET; 6min ago
Docs: man:systemd-remount-fs.service(8)
https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Process: 984 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
Main PID: 984 (code=exited, status=1/FAILURE)
CPU: 10ms
Mär 11 21:46:51 klx99 systemd[1]: Starting Remount Root and Kernel File Systems...
Mär 11 21:46:51 klx99 systemd-remount-fs[1031]: mount: /: Einhängepunkt ist noch nicht eingehängt oder es wurden ungültige Optionen angegeben.
Mär 11 21:46:51 klx99 systemd-remount-fs[984]: /usr/bin/mount for / exited with exit status 32.
Mär 11 21:46:51 klx99 systemd[1]: systemd-remount-fs.service: Main process exited, code=exited, status=1/FAILURE
Mär 11 21:46:51 klx99 systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
Mär 11 21:46:51 klx99 systemd[1]: Failed to start Remount Root and Kernel File Systems.
Steps to reproduce the problem
The issue is not present when using the ext4 file system with the same device, I've only come across it by using F2FS. Booting up the system should reproduce it.
changed the title [-]systemd-remount-fs.service: Failed with result 'exit-code' when F2FS is used as root partition[/-][+]systemd-remount-fs.service: Failed with result 'exit-code' when F2FS is used as root partitition[/+]on Mar 11, 2023
ArchWiki has made it clear that this is a mount option problem for F2FS and has nothing to do with systemd itself. systemd-remount-fs.service uses exactly the mount options user specified in fstab to remount rootfs, as if one has run mount -o remount,... / manually according to fstab.
Thanks, I'll close this one here and open a Kernel bug report instead. Thanks a lot for taking your time as the implications weren't clear enough for me from reading the Arch Wiki myself.
A quick search revealed that the atgc feature itself might be very useful for F2FS devices. A helpful error message with a hint to the workaround might be also very helpful or something that points to the Arch wiki.
Something like "You can workaround this issue on F2FS devices by adding "rootflags=atgc" to your Linux command line." would do the trick.
Activity
[-]systemd-remount-fs.service: Failed with result 'exit-code' when F2FS is used as root partition[/-][+]systemd-remount-fs.service: Failed with result 'exit-code' when F2FS is used as root partitition[/+]ms178 commentedon Mar 11, 2023
Might be a duplicate of #22982
YHNdnzj commentedon Mar 11, 2023
ArchWiki has made it clear that this is a mount option problem for F2FS and has nothing to do with systemd itself.
systemd-remount-fs.serviceuses exactly the mount options user specified infstabto remount rootfs, as if one has runmount -o remount,... /manually according to fstab.ms178 commentedon Mar 11, 2023
So with which project should I file a bug to get this fixed properly eventually? Is this a distribution problem or a Kernel issue?
YHNdnzj commentedon Mar 11, 2023
The Linux kernel I suppose. The following are quoted from ArchWiki:
ms178 commentedon Mar 11, 2023
Thanks, I'll close this one here and open a Kernel bug report instead. Thanks a lot for taking your time as the implications weren't clear enough for me from reading the Arch Wiki myself.
YHNdnzj commentedon Mar 11, 2023
BTW, did you add
atgcyourself after doinggenfstabor it was there already?ms178 commentedon Mar 11, 2023
It was there already. I now use one of the workarounds that solve this.
YHNdnzj commentedon Mar 11, 2023
Then maybe I can add a quirk to
genfstabso that the option will be removed from the generated entry :)ms178 commentedon Mar 11, 2023
A quick search revealed that the atgc feature itself might be very useful for F2FS devices. A helpful error message with a hint to the workaround might be also very helpful or something that points to the Arch wiki.
Something like "You can workaround this issue on F2FS devices by adding "rootflags=atgc" to your Linux command line." would do the trick.
YHNdnzj commentedon Mar 11, 2023
I'll try my best. But I believe the first goal is to provide the users with a fully-functioning fstab 😉
genfstab: remove atgc mount option