[systemd-devel] Root remaining read-only after boot, no obvious reason why
Dave Re
Dave.Re at IMPRIVATA.com
Tue May 16 14:37:58 UTC 2023
Hi, Zbyszek,
The kernel default is to mount root ro, so unless there's some configuration to
mount or remount it rw, it'll stay ro. Generally this is configured in two
places 'rw' on the kernel command line and 'rw' in /etc/fstab. Do you have
one or both of those?
Yes. In this case, the kernel command line in grub contains the usual "ro" option, but /etc/fstab has an entry for root with "defaults" as the sole option. Default options are theoretically "rw, suid, dev, exec, auto, nouser, and async". To verify, I placed that option list in /etc/fstab for root, and saw the same behavior on reboot, so I eliminated the fstab entry as a potential issue.
Also related - the device is identified in fstab by UUID, not by label or partition. I verified the UUID of the device still matches the UUID in fstab, etc.
If I change the kernel command line in grub to use "rw", root mounts rw as expected.
If a remount is done, it'll be done by systemd-remount-fs.service. Do you
see it in the logs?
Ah, I misunderstood initrd-switch-root - thanks. On a system that successfully boots with root mounted rw, I don't see anything about systemd-remount-fs.service until it's shutdown, when the service is stopped, but systemd was ratelimited by the kernel on that boot, so a startup message may have been missed. But - I can see that systemd-remount-fs.service is Active/exited (via systemctl status command).
On the problem system, systemd-remount-fs.service is inactive/dead - and shows the same status if I reboot with "rw" on the kernel command line (which would be expected, given our symptoms, I think?).
On both systems, it's linked in /usr/lib/systemd/system/local-fs.target.wants - so, should be run as part of getting to that target, if I understand correctly? What should my next step be to determine why it's not being run?
Thank you!
Dave
Dave Re
Manager, DevOps Engineering
www.imprivata.com
20 CityPoint, 6th Floor
480 Totten Pond Road
Waltham, MA 02451
The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information. [ImprivataV12018]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image874393.png
Type: image/png
Size: 2792 bytes
Desc: image874393.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image644697.png
Type: image/png
Size: 617 bytes
Desc: image644697.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image307438.png
Type: image/png
Size: 594 bytes
Desc: image307438.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image101449.png
Type: image/png
Size: 379 bytes
Desc: image101449.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image496685.png
Type: image/png
Size: 413 bytes
Desc: image496685.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image831431.png
Type: image/png
Size: 518 bytes
Desc: image831431.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image857331.png
Type: image/png
Size: 418 bytes
Desc: image857331.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image347492.png
Type: image/png
Size: 10709 bytes
Desc: image347492.png
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0015.png>
-------------- next part --------------
An embedded message was scrubbed...
From: iCares <icares at IMPRIVATA.com>
Subject: REMINDER: Spring Cleaning Donation Drive
Date: Tue, 16 May 2023 13:57:29 +0000
Size: 649715
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230516/f2f2808b/attachment-0001.eml>
More information about the systemd-devel
mailing list