Bug 1394395

Summary: Create /var/lib/nfs/etab etc if they don't exist
Product: [Fedora] Fedora Reporter: Colin Walters <walters>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcodding, bfields, jlayton, smayhew, steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-11 21:52:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Colin Walters 2016-11-11 20:46:11 UTC
For rpm-ostree as used by Atomic Host, we synthesize tmpfiles.d snippets for directories, but not files.

The goal here is that one can perform a "factory reset" by rm -rf /var/* && systemctl reboot.

So currently this requires one to:
touch /var/lib/nfs/{etab,rmtab}

I think the simplest is to change the code to create the file on demand if it doesn't exist.  Failing that, a systemd tmpfiles.d `f` entry would work fine.

It's possible at some point we'll explicitly special case nfs-utils in rpm-ostree to do this, but I'd like to have nfs-utils learn about this as well.

Comment 2 Colin Walters 2016-11-11 21:52:03 UTC

*** This bug has been marked as a duplicate of bug 1293933 ***