lanzatool: make --pki-bundle optional

This commit is contained in:
nikstur 2022-11-25 13:08:37 +01:00
parent cd2ef6181d
commit ad3a8ec3e5
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ pub enum Commands {
// Secure Boot PKI Bundle for auto enrolling key // Secure Boot PKI Bundle for auto enrolling key
#[clap(long)] #[clap(long)]
pki_bundle: PathBuf, pki_bundle: Option<PathBuf>,
// Enable auto enrolling your keys in UEFI // Enable auto enrolling your keys in UEFI
// Be aware that this might irrevocably brick your device // Be aware that this might irrevocably brick your device
@ -53,7 +53,7 @@ impl Commands {
} => install( } => install(
&public_key, &public_key,
&private_key, &private_key,
&pki_bundle, pki_bundle,
auto_enroll, auto_enroll,
&bootspec, &bootspec,
), ),
@ -64,7 +64,7 @@ impl Commands {
fn install( fn install(
public_key: &Path, public_key: &Path,
private_key: &Path, private_key: &Path,
pki_bundle: &Path, pki_bundle: Option<PathBuf>,
auto_enroll: bool, auto_enroll: bool,
bootspec: &Path, bootspec: &Path,
) -> Result<()> { ) -> Result<()> {

View File

@ -11,7 +11,7 @@ use crate::signer::Signer;
pub fn install( pub fn install(
public_key: &Path, public_key: &Path,
private_key: &Path, private_key: &Path,
_pki_bundle: &Path, _pki_bundle: Option<PathBuf>,
_auto_enroll: bool, _auto_enroll: bool,
bootspec: &Path, bootspec: &Path,
lanzaboote_stub: &Path, lanzaboote_stub: &Path,