Unverified Commit b56bc021 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

breakpointHook: enter the build as nixbld instead of root (#472796)

parents e5b3bd96 e8446c8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ pwd="$(readlink /proc/$pid/cwd)"
# bash needs to be executed with --init-file /build/env-vars to include the bash native
#   variables like ones declared via `declare -a`.
# If another shell is chosen via `debugShell`, it will only have simple env vars avaialable.
exec nsenter --mount --ipc --uts --pid  --net --target "$pid" "$bashInteractive" -c "
exec nsenter --mount --ipc --uts --pid --user --setuid follow --setgid follow --net --target "$pid" "$bashInteractive" -c "
  set -eu -o pipefail
  source \"$buildDir/env-vars\"
  cd \"$pwd\"