From e8ef79c7f2c78c3d1b90a5b25fb0a91f8f26f746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Thu, 5 Mar 2026 17:00:20 +0100 Subject: [PATCH] Always add bind to busybox in /bin/sh --- pkgs/nix-portable/default.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkgs/nix-portable/default.nix b/pkgs/nix-portable/default.nix index 9cd559c5..aedb5fac 100644 --- a/pkgs/nix-portable/default.nix +++ b/pkgs/nix-portable/default.nix @@ -326,13 +326,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"