See summary. That's wrong and it will break thinks if you are currently exporting directories because current state is lost. Since we can't upgrade nfs-utils only after stopping the service I suggest to protect all files in /var/lib/nfs. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Any news about this? :)
could easy be done with config_protect
I've now fixed this in nfs-utils-1.0.6.ebuild (without bumping the rev). The fix is simply to install the original versions of the files in /usr/lib/nfs for safekeeping. pkg_postinst will install them in /var/lib/nfs if there are no existing files. I think this is better than CONFIG_PROTECT since it's rare that you'd want to "merge" the distributed xtab and friends with your existing version. Thanks for the bug report!