Artix Linux Forum

Init systems => S6 => Topic started by: doaster1 on 28 December 2021, 20:21:26

Title: [SOLVED] automounting freenas samba share in /etc/fstab fails
Post by: doaster1 on 28 December 2021, 20:21:26
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:
Code: [Select]
//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
Code: [Select]
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
Title: Re: automounting freenas samba share in /etc/fstab fails
Post by: Dudemanguy on 29 December 2021, 15:34:09
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.
Title: Re: automounting freenas samba share in /etc/fstab fails
Post by: doaster1 on 29 December 2021, 20:52:30
That fixed it, thanks