forked from Sysdeploy/ipxe_scripts
Add signing to EFI
This commit is contained in:
parent
255a95b0cd
commit
93998bd7a7
|
@ -200,6 +200,8 @@ function make_ipxe_efi() {
|
|||
local embed_file="$2"
|
||||
local signing_cert="$3"
|
||||
local ca_cert="$4"
|
||||
local efi_key"$5"
|
||||
local efi_cert="$6"
|
||||
|
||||
embed_file="$(realpath "${embed_file}")"
|
||||
signing_cert="$(realpath "${signing_cert}")"
|
||||
|
@ -227,6 +229,7 @@ function make_ipxe_efi() {
|
|||
|
||||
make bin-x86_64-efi/ipxe.efi EMBED="${embed_file}" CERT="${signing_cert},${ca_cert}" TRUST="${ca_cert}" || return 2
|
||||
mv bin-x86_64-efi/ipxe.efi bin/
|
||||
sbsign --key ${efi_key} --cert ${efi_cert} --output bin/ipxe.efi bin/ipxe.efi
|
||||
|
||||
cd "$curr"
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user