20.11.2025 18:26, Bhasker C V wrote:
Hi all,

  I run my rootfs in 'ro' state and occasionally when i have to do an
install I switch to remount,rw ... do stuff and then go back to remount,ro

However, remount,ro many a times fails since someone has opened the rootfs
in "rw" state

While investigating I found that there seems to be this output in the LSOF
command

systemd       1        root   9u   REG  252,1    141808  659970
/usr/lib/systemd/systemd-executor
systemd    1668         bcv   9u   REG  252,1    141808  659970
/usr/lib/systemd/systemd-executor

is there a reason why systemd has opened /usr/lib/systemd/systemd-executor
in "rw" (9u) state rather than "r" ?


systemd-executor is opened with O_PATH which lsof does not understand, so I'd say it is lsof display bug.

OR is there a method to tell systemd not to open the files in / ever in
"rw" mode permanently (momentarily is fine) ?


Do you have any evidence it is systemd?

Reply via email to