summary refs log tree commit diff
path: root/nixos/modules/system/boot/stage-1.nix
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-10-12 09:24:00 +0000
committerGitHub <noreply@github.com>2018-10-12 09:24:00 +0000
commitb3dff39105beb0190d9a576afba95cd2a6903540 (patch)
tree6e6223e6d9848e60644d7e9d1065588d9971c106 /nixos/modules/system/boot/stage-1.nix
parent9dd5dc57a77b1b592708a6d27fef081be0b06fa8 (diff)
downloadnixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.tar
nixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.tar.gz
nixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.tar.bz2
nixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.tar.lz
nixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.tar.xz
nixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.tar.zst
nixpkgs-b3dff39105beb0190d9a576afba95cd2a6903540.zip
bootStage1: fix cross build (@matthewbauer's solution)
Diffstat (limited to 'nixos/modules/system/boot/stage-1.nix')
-rw-r--r--nixos/modules/system/boot/stage-1.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 8688b5ad9bf..f4cf9753c0a 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -252,9 +252,8 @@ let
       echo checking syntax
       # check both with bash
       ${pkgs.buildPackages.bash}/bin/sh -n $target
-    '' + optionalString (pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform) ''
       # and with ash shell, just in case
-      ${extraUtils}/bin/ash -n $target
+      ${pkgs.buildPackages.busybox}/bin/ash -n $target
     '';
 
     inherit udevRules extraUtils modulesClosure;