summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoachim F <joachifm@users.noreply.github.com>2017-09-09 13:07:39 +0000
committerGitHub <noreply@github.com>2017-09-09 13:07:39 +0000
commitb5163bc937de4697e3fa2592bb26d0ea978ef2a1 (patch)
tree52e3a642425eadd429ebf560680a2a9f4b2a5b49 /nixos
parent21c526de2fc6671e2c119616dd53b0b37de57e93 (diff)
parentabc96aae47d5651f0f1d0b5da7bfcf163a3e7c9f (diff)
downloadnixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.tar
nixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.tar.gz
nixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.tar.bz2
nixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.tar.lz
nixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.tar.xz
nixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.tar.zst
nixlib-b5163bc937de4697e3fa2592bb26d0ea978ef2a1.zip
Merge pull request #29071 from nh2/glusterfs-glusterfind-dirs
glusterfs service: Ensure dirs needed by `glusterfind` exist
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/network-filesystems/glusterfs.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/network-filesystems/glusterfs.nix b/nixos/modules/services/network-filesystems/glusterfs.nix
index f7fed793066a..7454eeef803f 100644
--- a/nixos/modules/services/network-filesystems/glusterfs.nix
+++ b/nixos/modules/services/network-filesystems/glusterfs.nix
@@ -50,11 +50,19 @@ in
       after = [ "rpcbind.service" "network.target" "local-fs.target" ];
       before = [ "network-online.target" ];
 
-      # The copying of hooks is due to upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761
       preStart = ''
         install -m 0755 -d /var/log/glusterfs
+      ''
+      # The copying of hooks is due to upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761
+      + ''
         mkdir -p /var/lib/glusterd/hooks/
         ${rsync}/bin/rsync -a ${glusterfs}/var/lib/glusterd/hooks/ /var/lib/glusterd/hooks/
+      ''
+      # `glusterfind` needs dirs that upstream installs at `make install` phase
+      # https://github.com/gluster/glusterfs/blob/v3.10.2/tools/glusterfind/Makefile.am#L16-L17
+      + ''
+        mkdir -p /var/lib/glusterd/glusterfind/.keys
+        mkdir -p /var/lib/glusterd/hooks/1/delete/post/
       '';
 
       serviceConfig = {