pub struct BootManager { /* private fields */ }Implementations§
Source§impl BootManager
impl BootManager
pub fn new( paths: KernelPaths, keep_last_kernel: bool, last_kernel_suffix: Option<String>, ) -> Self
Sourcepub fn link_kernel_config(&self, kernel_path: &Path) -> Result<(), BuilderErr>
pub fn link_kernel_config(&self, kernel_path: &Path) -> Result<(), BuilderErr>
Link kernel config file to kernel source directory.
§Errors
Returns an error if file operations fail.
Sourcepub fn update_linux_symlink(
&self,
version_entry: &VersionEntry,
) -> Result<(), BuilderErr>
pub fn update_linux_symlink( &self, version_entry: &VersionEntry, ) -> Result<(), BuilderErr>
Update the /usr/src/linux symlink to point to the selected kernel.
§Errors
Returns an error if symlink operations fail.
Sourcepub fn check_new_config_options(
&self,
kernel_path: &Path,
) -> Result<bool, BuilderErr>
pub fn check_new_config_options( &self, kernel_path: &Path, ) -> Result<bool, BuilderErr>
Sourcepub fn run_olddefconfig(&self, kernel_path: &Path) -> Result<(), BuilderErr>
pub fn run_olddefconfig(&self, kernel_path: &Path) -> Result<(), BuilderErr>
Run make olddefconfig to integrate new kernel config options.
§Errors
Returns an error if olddefconfig fails.
Sourcepub fn build_kernel(
&self,
kernel_path: &Path,
threads: usize,
) -> Result<Output, BuilderErr>
pub fn build_kernel( &self, kernel_path: &Path, threads: usize, ) -> Result<Output, BuilderErr>
Sourcepub fn install_kernel(
&self,
kernel_path: &Path,
replace: bool,
) -> Result<(), BuilderErr>
pub fn install_kernel( &self, kernel_path: &Path, replace: bool, ) -> Result<(), BuilderErr>
Install the compiled kernel to the boot partition.
§Errors
Returns an error if file operations fail.
Sourcepub fn install_modules(&self, kernel_path: &Path) -> Result<Output, BuilderErr>
pub fn install_modules(&self, kernel_path: &Path) -> Result<Output, BuilderErr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BootManager
impl RefUnwindSafe for BootManager
impl Send for BootManager
impl Sync for BootManager
impl Unpin for BootManager
impl UnsafeUnpin for BootManager
impl UnwindSafe for BootManager
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