Bug 1394395 - Create /var/lib/nfs/etab etc if they don't exist
Summary: Create /var/lib/nfs/etab etc if they don't exist
Keywords:
Status: CLOSED DUPLICATE of bug 1293933
Alias: None
Product: Fedora
Classification: Fedora
Component: nfs-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-11 20:46 UTC by Colin Walters
Modified: 2016-11-11 21:52 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-11-11 21:52:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.