lanzatool: remove placeholder code for auto enrolling uefi keys
This commit is contained in:
parent
06da27529f
commit
614131d648
|
@ -27,14 +27,6 @@ struct InstallCommand {
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
private_key: PathBuf,
|
private_key: PathBuf,
|
||||||
|
|
||||||
/// sbctl PKI bundle for auto enrolling key
|
|
||||||
#[arg(long)]
|
|
||||||
pki_bundle: Option<PathBuf>,
|
|
||||||
|
|
||||||
/// Auto enroll your keys. This might brick your device
|
|
||||||
#[arg(long, default_value = "false")]
|
|
||||||
auto_enroll: bool,
|
|
||||||
|
|
||||||
/// EFI system partition mountpoint (e.g. efiSysMountPoint)
|
/// EFI system partition mountpoint (e.g. efiSysMountPoint)
|
||||||
esp: PathBuf,
|
esp: PathBuf,
|
||||||
|
|
||||||
|
@ -65,8 +57,6 @@ fn install(args: InstallCommand) -> Result<()> {
|
||||||
install::Installer::new(
|
install::Installer::new(
|
||||||
PathBuf::from(lanzaboote_stub),
|
PathBuf::from(lanzaboote_stub),
|
||||||
key_pair,
|
key_pair,
|
||||||
args.pki_bundle,
|
|
||||||
args.auto_enroll,
|
|
||||||
args.esp,
|
args.esp,
|
||||||
args.generations,
|
args.generations,
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,8 +15,6 @@ use crate::signature::KeyPair;
|
||||||
pub struct Installer {
|
pub struct Installer {
|
||||||
lanzaboote_stub: PathBuf,
|
lanzaboote_stub: PathBuf,
|
||||||
key_pair: KeyPair,
|
key_pair: KeyPair,
|
||||||
_pki_bundle: Option<PathBuf>,
|
|
||||||
_auto_enroll: bool,
|
|
||||||
esp: PathBuf,
|
esp: PathBuf,
|
||||||
generations: Vec<PathBuf>,
|
generations: Vec<PathBuf>,
|
||||||
}
|
}
|
||||||
|
@ -25,16 +23,12 @@ impl Installer {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
lanzaboote_stub: PathBuf,
|
lanzaboote_stub: PathBuf,
|
||||||
key_pair: KeyPair,
|
key_pair: KeyPair,
|
||||||
_pki_bundle: Option<PathBuf>,
|
|
||||||
_auto_enroll: bool,
|
|
||||||
esp: PathBuf,
|
esp: PathBuf,
|
||||||
generations: Vec<PathBuf>,
|
generations: Vec<PathBuf>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
lanzaboote_stub,
|
lanzaboote_stub,
|
||||||
key_pair,
|
key_pair,
|
||||||
_pki_bundle,
|
|
||||||
_auto_enroll,
|
|
||||||
esp,
|
esp,
|
||||||
generations,
|
generations,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue