You are not logged in.

#1 2013-10-19 16:09:14

canthar
Member
Registered: 2013-03-31
Posts: 2

Read-only bind mount using fstab and systemd

I'd like to have read-only bind mount in fstab. I've read that proper solution of that problem is adding to /etc/fstab those lines:

/src/dir   /dst/dir    none   bind   0 0
/src/dir   /dst/dir   none   remount,bind,ro   0 0

I know it works on non-systemd enviroments (Debian) but with systemd I get error message from systemd-fstab-generator during startup about duplicate entry in /etc/fstab and my mount point is not read-only. Does anyone have better solution than running a script?

Offline

Board footer

Powered by FluxBB