nixos/glusterfs: fix dangling glusterfind hook symlink
The hooks tree copied into /var/lib/glusterd contains one symlink, S57glusterfind-delete-post, whose relative target resolves inside the package's $out but dangles once copied verbatim into / (the referent lives in the Nix store, not under /libexec). Pass --copy-unsafe-links so rsync dereferences symlinks pointing outside the tree into real files. Fixes #257863. Assisted-by: claude-code with claude-opus-4-8[1m]-high
This commit is contained in:
@@ -180,7 +180,9 @@ in
|
||||
# Excludes one hook due to missing SELinux binaries.
|
||||
+ ''
|
||||
mkdir -p /var/lib/glusterd/hooks/
|
||||
${rsync}/bin/rsync -a --exclude="S10selinux-label-brick.sh" ${glusterfs}/var/lib/glusterd/hooks/ /var/lib/glusterd/hooks/
|
||||
# --copy-unsafe-links: the glusterfind hook is a symlink into the package's
|
||||
# libexec that would dangle once copied verbatim into / (#257863).
|
||||
${rsync}/bin/rsync -a --copy-unsafe-links --exclude="S10selinux-label-brick.sh" ${glusterfs}/var/lib/glusterd/hooks/ /var/lib/glusterd/hooks/
|
||||
|
||||
${tlsCmd}
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user