Blame SOURCES/nfs-utils-1.3.0-systemd-rpcpipefs.patch

a96f26
commit 8b3abe3a0ae941f3f52f99bc44388b7beb3d9bb8
a96f26
Author: Colin Walters <walters@verbum.org>
a96f26
Date:   Fri Jun 26 09:31:16 2015 -0400
a96f26
a96f26
    systemd: Set var-lib-nfs-rpc_pipefs.mount After= tmpfiles
a96f26
    
a96f26
    OSTree is a mechanism for atomic updates of operating systems, with
a96f26
    designs for how system state is managed; in particular, `/var` should
a96f26
    start out empty, and components are responsible for creating content
a96f26
    there at runtime.
a96f26
    
a96f26
    rpm-ostree consumes RPMs and commits them to an OSTree repository.
a96f26
    It has some support for automatically synthesizing systemd `tmpfiles.d`
a96f26
    snippets from RPM content in `/var` using systemd-tmpfiles.
a96f26
    
a96f26
    However, in this case nfs-utils wants a mount point directory, and
a96f26
    it's running before systemd-tmpfiles. It should be perfectly fine to
a96f26
    do this mount after tmpfiles has run.
a96f26
    
a96f26
    A better fix for this would be to move transient directories to
a96f26
    `/run`; However, that would be an invasive change, which can happen
a96f26
    after this fix.
a96f26
    
a96f26
    Signed-off-by: Colin Walters <walters@verbum.org>
a96f26
    Signed-off-by: Steve Dickson <steved@redhat.com>
a96f26
a96f26
diff --git a/systemd/var-lib-nfs-rpc_pipefs.mount b/systemd/var-lib-nfs-rpc_pipefs.mount
a96f26
index 33c5db6..26d1c76 100644
a96f26
--- a/systemd/var-lib-nfs-rpc_pipefs.mount
a96f26
+++ b/systemd/var-lib-nfs-rpc_pipefs.mount
a96f26
@@ -1,6 +1,7 @@
a96f26
 [Unit]
a96f26
 Description=RPC Pipe File System
a96f26
 DefaultDependencies=no
a96f26
+After=systemd-tmpfiles-setup.service
a96f26
 Conflicts=umount.target
a96f26
 
a96f26
 [Mount]