buildFHSUserEnv: use runScript in env (#49077)

This makes its behaviour conform to what is implied in the
documentation.
This commit is contained in:
Kristoffer Søholm 2018-10-30 22:47:08 +01:00 committed by xeji
parent 4c8a198f12
commit 5e5e57c572

View file

@ -28,7 +28,7 @@ in runCommand name {
passthru = passthru // {
env = runCommand "${name}-shell-env" {
shellHook = ''
exec ${chrootenv} ${init "bash"} "$(pwd)"
exec ${chrootenv} ${init runScript} "$(pwd)"
'';
} ''
echo >&2 ""