[squashme] elaborate comment on unpack-bootstrap-files.sh

Changed files
+2 -1
pkgs
stdenv
+2 -1
pkgs/stdenv/freebsd/unpack-bootstrap-files.sh
···
# sanity check
$out/bin/true || exit 1
-
# scorched earth
for f in $(find $out -type f); do
while true; do
BADMAN="$(strings $f | grep -o '/nix/store/.*' | grep -v "$out" | head -n1)"
···
# sanity check
$out/bin/true || exit 1
+
# meticulously replace every nix store path with the right one
+
# to work with binaries, make sure the path remains the same length by prefixing pathsep chars
for f in $(find $out -type f); do
while true; do
BADMAN="$(strings $f | grep -o '/nix/store/.*' | grep -v "$out" | head -n1)"