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
Prioritize systemd-remount-fs for local-fs.target #5358
Comments
Please provide a longer boot log excerpt. systemd-remote-fs.service does not actually depend on any local file systems, it is only ordered after systemd-fsck-root.service, that's all. You can verify that easily by looking at the "systemctl show systemd-remote-fs.service" output. |
emmm I'm talking about Compare without masked
With masked
|
Sorry, I mistyped, that's what I meant. |
please provide the boot log output. "journalctl -b", ideally when booted with "systemd.log_level=debug" on the kernel cmdline. |
Full log here https://paste.kde.org/piogbxuag
|
Have same experience, in my case tmp.mount was masked and that (silently!) stopped systemd-remount-fs.service from being executed. Only after coming across this issue, I noticed the |
Well, as this says, the fact that this unit is masked is actually ignored... |
hmm, this is strange, remount-fs is not even mentioned in here at all |
something really strange is happening here... |
I have the same problem on the fresh Rocky Linux 9.1 installation with systemd 250 (250-12.el9_1.3). But I can't find any warnings or error messages in the logs, I just see the systemd-remount-fs.service in the dead state, and root filesystem leave mounted in the read only mode, without any comments. Only your github message help me to resolve this problem, Thank you! When I unmasked tmp.mount - remount worked via systemd-remount-fs.service after reboot. Recommendation to mask tmp.mount I found at the freedesktop.org site:
|
We've never had a separate |
It was my mistake - in the kickstart file I completely disable swap, create separate /tmp partition, and disable tmp.mount to prevent (as I previously think) creation of tmpfs which can use up to 50% of available RAM. And result was completely unexpected: when I disable tmp.mount in the %post section of kickstart file - after installation of Enterprise Linux 9.1 operating system - root filesystem was mounted in read only mode, sshd daemon not started and server was not usable and not accessible from network. From my user point of view disabling tmp.mount is completely unrelated to mounting root filesystem in read only mode. But from systemd 250 point of view - if tmp.mount is disabled - the systemd-remount-fs.service must not be started and root filesystem must be leaved in the read only mode. Unexpected. Very unexpected. May be this is bug in the systemd or RHEL9.1 ? Now I fix my own mistake - I create 256 GiB swap for server with 128 GiB RAM and enable tmp.mount in the %post section of the kickstart file for creating separate filesystem for /tmp using tmpfs using up to 50% of installed RAM. P.S. Red Hat Enterprise Linux 9.1 is the best Linux distro in the entire world. Rocky Linux 9.1 is 100% compatible with the Red Hat Enterprise Linux 9.1, but without the need to spend time and effort on games with licensing of the installed operating system - without support licensing games is useless and only take time and effort. Rocky Linux 9.1 did not reverts any changes in the distro, it is 100% compatible with RHEL 9.1 |
OK, as I understand this was a local issue, closing then. |
No, I just noted to @makhomed that he'd run into the issue because he'd done something pointless (in context of RHEL's default configuration). But the issue is completely generic. I just reproduced it on F-34 with latest
|
Output of |
Submission type
systemd version the issue has been seen with
systemd 232
Used distribution
Arch Linux
In case of bug report: Expected behaviour you didn't see
systemd-remount-fs
didn't start because unrelated automount was masked forlocal-fs.target
Initramfs mounted root fs read-only so
/
was unwritable causing pretty much all services to fail (due /var). It was supposed to be remounted read-write bysystemd-remount-fs
I think
systemd-remount-fs
should be run in any case even if other automounts forlocal-fs.target
fail.In case of bug report: Steps to reproduce the problem
Have root
/
fs mounted read-only by initramfs and have/etc/fstab
Idea is that you can quickly mask/unmask without needing to edit
fstab
.After reboot you can't even unmask it without manually remounting...
The text was updated successfully, but these errors were encountered: