RC - any reason autofs wouldn't work?

I had installed autofs (so I can easily access my shares through the /net directory) on alpha 4 and it was all working fine.

Today, I fresh-installed the RC using the Mac installer on a new SD card and OSMC and Kodi is up and running. I performed a sudo apt-get install autofs and it installed, I enabled the /net -hosts line and rebooted. But it’s unable to access any of the nfs shares. Again - this config worked perfectly on alpha4 on RPi2.

Any thoughts?

A log will help here

S

Done…

http://paste.osmc.io/sulupanulo

Also a bit more info.

my NFS export is on a NAS on my local lan as storage.local - I can mount this just fine with

sudo mount storage.local:/data/Media test

where test is a local directory I made just to test this out. So I know the share is available, I know it can be mounted by OSMC. For some reason autofs doesn’t seem to work in the RC when it did in Alpha4

Exact steps I did:

  1. Fresh install OSMC on SD
  2. after booting and selecting language - ssh in
  3. sudo apt-get update
  4. sudo apt-get install autofs
  5. edit /etc/auto.master and uncomment the “/net -hosts” line
  6. reboot

in alpha4, at this point, I could do:

cd /net/storag.local/data/Media

and it would auto-mount and behave as though it was always there. In the RC, I get

“-bash: cd: /net/storage.local/data/Media: No such file or directory”

the /net directory does exist and the rest of the path is supposed to trigger the nfs mount.

Thanks so much for your help.

Oh am I an idiot…

The line in /etc/auto.master should be

/net /etc/auto.net

and I had it as:

/net -hosts

DOH! Nevermid and so sorry to waste your time!

For anyone searching - here’s how to setup autofs so you can use the /net directory:

  1. sudo apt-get install autofs
  2. edit /etc/auto.master and uncomment the /net line and make it: /net /etc/auto.net

now you should be able to get to any NFS export like so:

/net/<host>/<share>/

Nice info, I use autofs but when I set it up the tutorial had me creating a auto.nfs file that targets a specific NFS server. I like this way better so I converted my setup to it, it is easier to setup and more versatile.