nixos: boot/stage-1: check syntax of the generated script

This commit is contained in:
Jan Malakhovski 2018-06-10 20:18:55 +00:00
parent b55c02e878
commit dc653449c5
1 changed files with 8 additions and 0 deletions

View File

@ -248,6 +248,14 @@ let
isExecutable = true;
postInstall = ''
echo checking syntax
# check both with bash
${pkgs.bash}/bin/sh -n $target
# and with ash shell, just in case
${extraUtils}/bin/ash -n $target
'';
inherit udevRules extraUtils modulesClosure;
inherit (config.boot) resumeDevice;