pub struct BareMetalConfig {
pub iso_url: &'static str,
pub iso_name: &'static str,
pub target_start_sector: u64,
pub manifest_sector: u64,
pub esp_start_lba: u64,
pub max_download_size: u64,
pub write_to_disk: bool,
pub partition_uuid: [u8; 16],
}Expand description
Configuration for the bare-metal runner.
NOTE: Uses &’static str instead of String because we cannot allocate after ExitBootServices (the UEFI allocator is gone).
Fields§
§iso_url: &'static strURL to download ISO from (must be ’static - allocated before EBS).
iso_name: &'static strISO filename for manifest (e.g., “tails-6.0.iso”).
target_start_sector: u64Target disk sector to start writing ISO data at.
manifest_sector: u64Sector where manifest is stored (raw sector write, legacy). Set to 0 to use FAT32 manifest instead.
esp_start_lba: u64ESP partition start LBA for FAT32 manifest writing.
If non-zero, writes manifest to /.iso/<name>.manifest on ESP.
max_download_size: u64Maximum download size in bytes.
write_to_disk: boolWhether to write to disk (requires VirtIO-blk).
partition_uuid: [u8; 16]Partition UUID for chunk tracking (16 bytes, or zeros if unknown).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BareMetalConfig
impl RefUnwindSafe for BareMetalConfig
impl Send for BareMetalConfig
impl Sync for BareMetalConfig
impl Unpin for BareMetalConfig
impl UnwindSafe for BareMetalConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more