From 2bcd3dad866e70b0dc4943d3ff32ffcd487ec301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Wed, 8 Sep 2021 20:08:44 +0200 Subject: [PATCH] nixos/top-level: Check activation script syntax --- nixos/modules/system/activation/top-level.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 80835d9688f2..616e1422aa8c 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -61,6 +61,8 @@ let substituteInPlace $out/dry-activate --subst-var out chmod u+x $out/activate $out/dry-activate unset activationScript dryActivationScript + ${pkgs.runtimeShell} -n $out/activate + ${pkgs.runtimeShell} -n $out/dry-activate cp ${config.system.build.bootStage2} $out/init substituteInPlace $out/init --subst-var-by systemConfig $out