0

I have an embedded system with a read-only rootfs on which several services are masked.

The masking creates a symlink to /dev/null in /etc/systemd/system/.

The unmasking tries to remove the symlink but as the rootfs is RO, it fails successfully.

Is there a way to unmask said services without mounting rootfs in RW?

1 Answer 1

1

You might try to create an overlayfs, re-mount it on /, and tell systemd to reload all services (systemctl daemon-reload).

1
  • This way might be the right way. Unfortunately this change would not be trivial and for the moment I will not try it. I decided to just stop the services after boot.
    – ossx
    Commented Mar 27, 2019 at 10:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .