Skip to content

Commit 3ad158a

Browse files
committed
fix: run check_uefi in efi_stub module
1 parent 22247ca commit 3ad158a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/postinstall/efi_stub.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use crate::util::sys::check_uefi;
12
use color_eyre::{eyre::bail, Result};
23
use serde::{Deserialize, Serialize};
34
use std::process::Command;
@@ -18,7 +19,7 @@ impl PostInstallModule for EfiStub {
1819
fn run(&self, context: &Context) -> Result<()> {
1920
// two guard clauses for checking EFI and
2021
// existence of an ESP partition
21-
if !context.uefi {
22+
if !context.uefi || !check_uefi() {
2223
return Ok(());
2324
}
2425

0 commit comments

Comments
 (0)