published by Christian Seiler on Sat, 02/21/2015 - 12:31
A solution for using bind mounts with options (such as read-only) in /etc/fstab
on systemd systems is presented. By installing an additional systemd generator, bind-mounts in /etc/fstab
will now respect additional options specified there. This is fully dynamic and the only configuration happens in /etc/fstab
.