rearrange configuration to be closer to where it's consumed

This commit is contained in:
alex committed 2025-10-11 14:13:59 -07:00
1 parent 77126e40ae
commit 449eb85ab8
10 files changed
+92 -93

No files matched your search

+8 -1
View File
@@ -1,12 +1,19 @@
use crate::config::ChainloadConfiguration;
use crate::context::Context;
use crate::utils;
use log::info;
use serde::{Deserialize, Serialize};
use std::rc::Rc;
use uefi::CString16;
use uefi::proto::device_path::LoadedImageDevicePath;
use uefi::proto::loaded_image::LoadedImage;
#[derive(Serialize, Deserialize, Default, Clone)]
pub struct ChainloadConfiguration {
pub path: String,
#[serde(default)]
pub options: Vec<String>,
}
pub fn chainload(context: Rc<Context>, configuration: &ChainloadConfiguration) {
let sprout_image = uefi::boot::image_handle();
let image_device_path_protocol =