File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
modules/reference/hardware/jetpack/nvidia-jetson-orin Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 1212
1313 eslFromCert =
1414 name : cert :
15- pkgs . runCommand name { nativeBuildInputs = [ pkgs . buildPackages . efitools ] ; } ''
16- certPath=${ lib . escapeShellArg ( toString cert ) }
15+ pkgs . runCommand name
16+ {
17+ nativeBuildInputs = [ pkgs . buildPackages . efitools ] ;
18+ certPath = cert ;
19+ }
20+ ''
21+ if [ ! -s "$certPath" ]; then
22+ echo "Missing or empty UEFI secure boot certificate: $certPath" >&2
23+ exit 1
24+ fi
1725
18- if [ ! -s "$certPath" ]; then
19- echo "Missing or empty UEFI secure boot certificate: $certPath" >&2
20- exit 1
21- fi
26+ ${ pkgs . buildPackages . efitools } /bin/cert-to-efi-sig-list "$certPath" "$out"
2227
23- ${ pkgs . buildPackages . efitools } /bin/cert-to-efi-sig-list "$certPath" "$out"
24-
25- if [ "$(wc -c < "$out")" -le 44 ]; then
26- echo "Generated ESL ${ name } from $certPath is empty" >&2
27- exit 1
28- fi
29- '' ;
28+ if [ "$(wc -c < "$out")" -le 44 ]; then
29+ echo "Generated ESL ${ name } from $certPath is empty" >&2
30+ exit 1
31+ fi
32+ '' ;
3033
3134 keysDir = cfg . keysSource ;
3235
You can’t perform that action at this time.
0 commit comments