diff --git a/pkgs/nix-portable/default.nix b/pkgs/nix-portable/default.nix index 32b76f34..69bc37cf 100644 --- a/pkgs/nix-portable/default.nix +++ b/pkgs/nix-portable/default.nix @@ -329,13 +329,7 @@ let fi done - # if we're on a nixos, the /bin/sh symlink will point - # to a /nix/store path which doesn't exit inside the wrapped env - # we fix this by binding busybox/bin to /bin - if test -s /bin/sh && [[ "\$(realpath /bin/sh)" == /nix/store/* ]]; then - toBind="\$toBind \$dir/busybox/bin /bin" - fi - + toBind="\$toBind \$dir/busybox/bin /bin" # provide /bin/sh via the shipped busybox toBind="\$toBind \$dir/busybox/bin/busybox /bin/sh"