pub struct KernelConfig {
pub prebuilt_path: Option<PathBuf>,
pub docker_context: Option<PathBuf>,
pub cmdline: String,
pub arch: KernelArch,
pub with_initramfs: bool,
pub services: Vec<String>,
pub kernel_version: Option<String>,
}Expand description
Configuration for building or loading a kernel.
Fields§
§prebuilt_path: Option<PathBuf>Path to a prebuilt kernel image (bzImage or ELF).
docker_context: Option<PathBuf>Docker build context directory (for building from source).
cmdline: StringKernel command line arguments.
arch: KernelArchTarget CPU architecture.
with_initramfs: boolWhether to include an initramfs.
services: Vec<String>Services to start in the initramfs /init script.
kernel_version: Option<String>Linux kernel version (for Docker builds).
Trait Implementations§
Source§impl Clone for KernelConfig
impl Clone for KernelConfig
Source§fn clone(&self) -> KernelConfig
fn clone(&self) -> KernelConfig
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 KernelConfig
impl Debug for KernelConfig
Auto Trait Implementations§
impl Freeze for KernelConfig
impl RefUnwindSafe for KernelConfig
impl Send for KernelConfig
impl Sync for KernelConfig
impl Unpin for KernelConfig
impl UnwindSafe for KernelConfig
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