nixos: boot/stage-1: check syntax of the generated script
This commit is contained in:
parent
b55c02e878
commit
dc653449c5
|
@ -248,6 +248,14 @@ let
|
||||||
|
|
||||||
isExecutable = true;
|
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 udevRules extraUtils modulesClosure;
|
||||||
|
|
||||||
inherit (config.boot) resumeDevice;
|
inherit (config.boot) resumeDevice;
|
||||||
|
|
Loading…
Reference in New Issue