I’d like to mount an NFS or a Samba share at startup on my Turris Omnia. On every sane Linux distro, this is as easy as putting a single line to
But using the
/etc/fstab approach does not work on Turris for two reasons: 1) there is no init script to run
mount -a and 2) the
/etc/fstab file is overwritten (cleared) on every TOS update. I know how to create an init script, but I’m not sure how to prevent updates from overwriting the fstab file. It’s confusing.
The block-mount approach also does not work, because it doesn’t support network shares (makes sense since those are not block devices).
I’ve found this forum topic, but I don’t like that approach because it means hardcoding the share parameters to some random file, a great place to hide information about the filesystems and never find them again.
Why is it such a struggle to automount a share? Or am I missing some simple solution?