firecracker_rs_sdk/models/boot_source.rs
1use std::path::PathBuf;
2
3use serde::{Deserialize, Serialize};
4
5/// Boot source descriptor.
6#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct BootSource {
8    /// Kernel boot arguments defines the command-line arguments
9    /// that should be passed to the kernel.
10    pub boot_args: Option<String>,
11
12    /// Host level path to the initrd image used to boot the guest
13    pub initrd_path: Option<PathBuf>,
14
15    /// Host level path to the kernel image used to boot the guest
16    /// The kernel image must be an uncompressed ELF image.
17    /// Required: true
18    pub kernel_image_path: PathBuf,
19}