FS#65500 - [nfs-utils] add /var/lib/nfs/etab to backup=()

Attached to Project: Arch Linux
Opened by Erich Eckner (deepthought) - Friday, 14 February 2020, 14:29 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 15 February 2020, 10:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Either /var/lib/nfs/etab should not be overwritten by upgrading the package (put into "backup=()") or `exportfs -ar` should be called in a post-installation hook. (I would prefer the former solution, as it does not magically apply a possibly-different-than-current config)

Otherwise, we have the situation, that (re)installing nfs-utils purges all current exports.

Additional info:
* package version(s)
nfs-utils 2.4.3-1

Steps to reproduce:
> pacman -S nfs-utils
> echo "/home 192.168.0.1/255.255.255.255 (rw,sync,no_subtree_check)" > /etc/exports
> exportfs -ar
> cat /var/lib/nfs/etab
# /home 192.168.0.1/255.255.255.255(rw,sync,no_subtree_check)
> pacman -S nfs-utils
> cat /var/lib/nfs/etab
# empty
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 15 February 2020, 10:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.4.3-2
Comment by Andreas Radke (AndyRTR) - Friday, 14 February 2020, 19:42 GMT
The Fedora package is maintained by the upstream developer and puts this file under backup control. So you're probably right and we should follow this behavior. From Fedora spec:

https://src.fedoraproject.org/rpms/nfs-utils/blob/master/f/nfs-utils.spec
%config(noreplace) %{_sharedstatedir}/nfs/etab
%config(noreplace) %{_sharedstatedir}/nfs/rmtab

I'm going to implement this.

Loading...