openatv / enigma2

openatv-gui
GNU General Public License v2.0
199 stars 317 forks source link

NFS mounted by autofs but not mapped to /hdd #3374

Open uzi18 opened 1 week ago

uzi18 commented 1 week ago

@jbleyel @zukon Hi got some problems with NFS automount - it is configured with "replace as hdd" function and last one does not work. It mounts correctly but after enigma2 launch /media/hdd is created as dir with subdirs solution is to manually execute commands:

rm -rf /media/hdd
ln -sf  /media/autofs/NAS326 /media/hdd

So it looks later like:


lrwxrwxrwx    1 root     root             9 Jun  8 16:00 /hdd -> media/hdd
root@zgemmah9combo:~# ls -l /media/hdd
lrwxrwxrwx    1 root     root            20 Jun 29 23:51 /media/hdd -> /media/autofs/NAS326
root@zgemmah9combo:~# mount |grep NAS
192.168.2.70:/i-data/50ae92a7/nfs on /media/autofs/NAS326 type nfs (rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,soft,nolock,proto=udp,timeo=14,retrans=3,sec=sys,mountaddr=192.168.2.70,mountvers=3,mountproto=udp,local_lock=all,addr=192.168.2.70)```

Any ideas how to solve it automagicaly ? 
Is it related to changes in https://github.com/openatv/enigma2/commits/master/lib/python/Components/Harddisk.py ?

How to check/debug this problem?
What information you need?
uzi18 commented 1 week ago

ok I see it is related to : https://github.com/oe-alliance/enigma2-plugins/issues/337

https://github.com/oe-alliance/enigma2-plugins/blob/master/networkbrowser/src/AutoMount.py