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

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

  • 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 Mar 27 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.