Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30486 - upgrade to nfs-utils overwrites /var/lib/nfs/xtab,/var/lib/nfs/etab
Summary: upgrade to nfs-utils overwrites /var/lib/nfs/xtab,/var/lib/nfs/etab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 09:13 UTC by Andrea Barisani (RETIRED)
Modified: 2004-01-15 14:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Barisani (RETIRED) gentoo-dev 2003-10-06 09:13:50 UTC
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.
Comment 1 Andrea Barisani (RETIRED) gentoo-dev 2004-01-14 13:56:19 UTC
Any news about this? :)
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-01-15 08:20:50 UTC
could easy be done with config_protect
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-01-15 14:19:23 UTC
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!