pub struct BootSpecV1 {
pub label: String,
pub kernel: PathBuf,
pub kernel_params: Vec<String>,
pub init: PathBuf,
pub initrd: Option<PathBuf>,
pub initrd_secrets: Option<PathBuf>,
pub system: String,
pub toplevel: SystemConfigurationRoot,
}Expand description
A V1 bootspec toplevel.
This structure represents the contents of the org.nixos.bootspec.v1 key.
Fields§
§label: StringLabel for the system closure
kernel: PathBufPath to kernel (bzImage) – $toplevel/kernel
kernel_params: Vec<String>list of kernel parameters
init: PathBufPath to the init script
initrd: Option<PathBuf>Path to initrd – $toplevel/initrd
initrd_secrets: Option<PathBuf>Path to “append-initrd-secrets” script – $toplevel/append-initrd-secrets
system: StringSystem double, e.g. x86_64-linux, for the system closure
toplevel: SystemConfigurationRootconfig.system.build.toplevel path
Trait Implementations§
Source§impl Clone for BootSpecV1
impl Clone for BootSpecV1
Source§fn clone(&self) -> BootSpecV1
fn clone(&self) -> BootSpecV1
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootSpecV1
impl Debug for BootSpecV1
Source§impl<'de> Deserialize<'de> for BootSpecV1
impl<'de> Deserialize<'de> for BootSpecV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BootSpecV1
impl PartialEq for BootSpecV1
Source§impl Serialize for BootSpecV1
impl Serialize for BootSpecV1
impl Eq for BootSpecV1
impl StructuralPartialEq for BootSpecV1
Auto Trait Implementations§
impl Freeze for BootSpecV1
impl RefUnwindSafe for BootSpecV1
impl Send for BootSpecV1
impl Sync for BootSpecV1
impl Unpin for BootSpecV1
impl UnwindSafe for BootSpecV1
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