Hi Jason,
I understand your comment #12 that we can eliminate the symlink from the 
equation.
It is not needed for you to trigger the issue - thanks for that hint.

The only differences between my try to reproduce in comment #3 and yours are:
- you set more NFS options in the master file
- you use direct [1] mounts while I used indirect ones

I modified my config accordingly to be more similar to yours:
Instead of
/etc/auto.master
/vol   /etc/auto.nfs
/etc/auto.nfs
home -fstype=nfs,rw,retry=0 192.168.122.247:/mnt/sharedfolder

I now use:
/etc/auto.master
/-   /etc/auto.nfs 
--timeout=0,-fstype=nfs,nfsvers=3,rw,hard,intr,rsize=8192,wsize=8192
/etc/auto.nfs
/vol/home 192.168.122.247:/mnt/sharedfolder

That still comes up just fine after boot (with symlink for home):
ubuntu@bionic-autofs-client:~$ mount | grep nfs
/etc/auto.nfs on /vol/home type autofs 
(rw,relatime,fd=6,pgrp=735,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18438)
192.168.122.247:/mnt/sharedfolder on /vol/home type nfs 
(rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.122.247,mountvers=3,mountport=48863,mountproto=udp,local_lock=none,addr=192.168.122.247)
ubuntu@bionic-autofs-client:~$ ll /home
lrwxrwxrwx 1 root root 9 May  3 10:02 /home -> /vol/home/
ubuntu@bionic-autofs-client:~$ ll /home/ubuntu/
total 44
drwxr-xr-x 5 ubuntu ubuntu  4096 May  6 06:34 ./
drwxrwxrwx 3 nobody nogroup 4096 May  3 09:53 ../
-rw------- 1 ubuntu ubuntu   330 May  6 06:35 .bash_history

Since you said changing the symlink isn't needed I switched to mount /home 
directly
/etc/auto.nfs
/home 192.168.122.247:/mnt/sharedfolder

That worked just as much.
ubuntu@bionic-autofs-client:~$ mount | grep home
/etc/auto.nfs on /home type autofs 
(rw,relatime,fd=6,pgrp=715,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18223)
192.168.122.247:/mnt/sharedfolder on /home type nfs 
(rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.122.247,mountvers=3,mountport=48863,mountproto=udp,local_lock=none,addr=192.168.122.247)


But then I realized one more difference - out of habit I used the latest LTS 
which is Bionic, but you reported the bug on Xenial. The setup is easy to copy 
over. Let me set the same up on Xenial to be sure that it works for me on that 
version as well.

[1]: https://linux.die.net/man/5/auto.master

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1827286

Title:
  autofs  - "Too many levels of symbolic links" after apt upgrade

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autofs5/+bug/1827286/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to