diff options
author | Niklas Hambüchen <mail@nh2.me> | 2017-05-13 03:07:04 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2017-05-19 16:56:31 +0200 |
commit | ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7 (patch) | |
tree | 01b947b234b696f42e260819b3058f1478c39586 /nixos/modules/services/network-filesystems | |
parent | 01bbdae2fea6b68c05ff1c5b14a0243854861600 (diff) | |
download | nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.tar nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.tar.gz nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.tar.bz2 nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.tar.lz nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.tar.xz nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.tar.zst nixlib-ff4eb1eaa6693dbdee5e186f8c9832c11c51f9c7.zip |
glusterfs service: Copy hooks to /var at startup.
This is where glusterfs expects them; see also https://github.com/gluster/glusterfs/blob/v3.10.1/extras/hook-scripts/Makefile.am#L4 Also see upstream bug https://bugzilla.redhat.com/show_bug.cgi?id=1452761
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r-- | nixos/modules/services/network-filesystems/glusterfs.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/network-filesystems/glusterfs.nix b/nixos/modules/services/network-filesystems/glusterfs.nix index a2f2c0339515..f7fed793066a 100644 --- a/nixos/modules/services/network-filesystems/glusterfs.nix +++ b/nixos/modules/services/network-filesystems/glusterfs.nix @@ -3,7 +3,7 @@ with lib; let - inherit (pkgs) glusterfs; + inherit (pkgs) glusterfs rsync; cfg = config.services.glusterfs; @@ -50,8 +50,11 @@ 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 + mkdir -p /var/lib/glusterd/hooks/ + ${rsync}/bin/rsync -a ${glusterfs}/var/lib/glusterd/hooks/ /var/lib/glusterd/hooks/ ''; serviceConfig = { |