Hello there,
I have a problem with s6 that is i cannot automount the samba shares of my freenas box on system startup.
The line in /etc/fstab is:
//freenas.box/multimedia /mnt/freenas/multimedia cifs _netdev,rw,credentials=/etc/samba/credentials/mycreds,uid=myuser,gid=users,auto,nofail 0 0
when I boot up the system, the share is not mounted. However a
sudo mount -a
fixes that.
I guess this is a dependency issue in s6 where the mount-net oneshot fires before ethernet is connected.
How could I setup s6 such that this would work?
with Best Regards
You should remove mount-net from the default bundle if it is still there. Instead, add mount-net to the "network" bundle and it should work correctly. The only reason this is not the default in s6-scripts is because the s6-rc-update command could fail if you upgrade from an old version of s6-scripts. The plan is for this to be the default when new stable isos are released.