Ventoy Secure Boot Policy Update

- Update pack script (add efi file signature process)
This commit is contained in:
longpanda
2026-06-23 21:10:17 +08:00
parent 4302854b8d
commit 71ac855b36
2 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/usr/bin/expect -f
set password [lindex $argv 0]
set key_file [lindex $argv 1]
set cert_file [lindex $argv 2]
set input_file [lindex $argv 3]
set output_file [lindex $argv 4]
spawn bash -c "sbsign --key '$key_file' --cert '$cert_file' --output '$output_file' '$input_file' 2>&1"
expect -nocase -re "Enter PEM pass phrase:"
send "$password\r"
expect eof
set ret [wait]
exit [lindex $ret 3]