On Thu, 4 Aug 2016 17:54:10 -0500 "Timothy Pearson" < kb9...@pearsoncomputing.net> wrote: > For now, since klibc does not have NFSV4 support, the attached file works > around the problem (place in /usr/share/initramfs-tools/hooks/nfsv4).
Thanks a lot for the workaround!!! Though it doesn't work with read-only NFSv4.1 and OverlayFS with TmpFS on Stretch, both kernels 4.9 and 4.19. Any ideas? In the hook I added your workaround and: manual_add_modules overlay Then on /etc/initramfs-tools/scripts/init-bottom/local: mkdir -m 700 /ovl mkdir /ovl/lower /ovl/ram /ovl/merged mount -n -o move $rootmnt /ovl/lower mount -n -t tmpfs -o 'mode=755,size=75%' tmpfs /ovl/ram mkdir /ovl/ram/upper /ovl/ram/work mount -n -t overlay -o "lowerdir=/ovl/lower,upperdir=/ovl/ram/upper,workdir=/ovl/ram/work,_netdev" overlay /ovl/merged mount -n -o move /ovl/merged $rootmnt mkdir -m 700 $rootmnt/ovl mkdir $rootmnt/ovl/lower $rootmnt/ovl/ram mount -n -o move /ovl/lower $rootmnt/ovl/lower mount -n -o move /ovl/ram $rootmnt/ovl/ram This works with NFSv3. Also, if I test it on an already booted system with mounting NFSv4.1 manually and doing the overlay it works. So, something in the initramfs is different to the booted up system that causes the problem, but couldn't find it. If anyone has any idea of things to try I can report back the results and try to provide a fully working solution afterwards. Thanks!