Bug 1394395
| Summary: | Create /var/lib/nfs/etab etc if they don't exist | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Colin Walters <walters> |
| Component: | nfs-utils | Assignee: | Steve Dickson <steved> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | 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: | |||
Cross linking: https://github.com/openshift/openshift-ansible/pull/2789/commits/5e8e5cb144d032b20f88365799709bcd8f0b83fc *** This bug has been marked as a duplicate of bug 1293933 *** |
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.