mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-06-29 06:28:13 +00:00
Ventoy Secure Boot Policy Update
- Update pack script (add efi file signature process)
This commit is contained in:
19
INSTALL/sign_with_pass.exp
Normal file
19
INSTALL/sign_with_pass.exp
Normal 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]
|
||||
Reference in New Issue
Block a user