diff --git a/src/backend/postinstall/efi_stub.rs b/src/backend/postinstall/efi_stub.rs index e58155b..6eb60cc 100644 --- a/src/backend/postinstall/efi_stub.rs +++ b/src/backend/postinstall/efi_stub.rs @@ -52,7 +52,14 @@ impl PostInstallModule for EfiStub { .status()?; if !status.success() { - bail!("Failed to create EFI boot entry"); + // We should be able to fail silently here, as the user may still be able to find the OS as long + // as the firmware finds the bootloader binary + + tracing::error!("Failed to create EFI boot entry"); + + tracing::warn!("EFI boot entry creation failed, You may not be able to find the installed OS in the boot menu"); + + // todo: Implement a popup to warn the user, since this is not a critical error but should be noted } Ok(()) diff --git a/src/main.rs b/src/main.rs index 2b8ba2d..e7632cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -257,7 +257,7 @@ fn initialize_custom_icons(display: >k::gdk::Display) { #[allow(clippy::cognitive_complexity)] fn setup_hooks() -> impl std::any::Any { for arg in std::env::args() { - if arg.starts_with("READYMADE_") || arg.starts_with("REPART_COPY_SOURCE") { + if arg.starts_with("READYMADE_") || arg.starts_with("REPART_COPY_SOURCE") || arg.starts_with("NO_COLOR") { let (key, value) = arg.split_once('=').unwrap(); println!("Setting env var {key} to {value}"); std::env::set_var(key, value);