nixos/glusterfs: install group presets into /var/lib/glusterd
Upstream installs the volume option presets into $(localstatedir)/lib/glusterd/groups, which ends up under the package's $out/var rather than /var, so `gluster volume set <vol> group <name>` failed for metadata-cache, nl-cache, virt, etc. Copy them into place alongside the existing hooks rehydration. Fixes #33159. Assisted-by: claude-code with claude-opus-4-8[1m]-high
This commit is contained in:
@@ -191,6 +191,12 @@ in
|
||||
+ ''
|
||||
mkdir -p /var/lib/glusterd/glusterfind/.keys
|
||||
mkdir -p /var/lib/glusterd/hooks/1/delete/post/
|
||||
''
|
||||
# Volume option presets, installed by upstream under $out/var; copy them so
|
||||
# `gluster volume set <vol> group <name>` works (#33159).
|
||||
+ ''
|
||||
mkdir -p /var/lib/glusterd/groups/
|
||||
${rsync}/bin/rsync -a ${glusterfs}/var/lib/glusterd/groups/ /var/lib/glusterd/groups/
|
||||
'';
|
||||
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user