use super::{Bootloader, BootloaderFiles, ConfigFile};
use crate::config::BootType;
use crate::core::context::Context;
use crate::core::error::Result;
pub struct GrubBootloader;
impl GrubBootloader {
pub fn new() -> Self {
Self
}
}
impl Default for GrubBootloader {
fn default() -> Self {
Self::new()
}
}
impl Bootloader for GrubBootloader {
fn prepare(&self, _ctx: &Context) -> Result<BootloaderFiles> {
Ok(BootloaderFiles::new())
}
fn config_files(&self, _ctx: &Context) -> Result<Vec<ConfigFile>> {
Ok(Vec::new())
}
fn boot_type(&self) -> BootType {
BootType::Hybrid
}
fn name(&self) -> &str {
"GRUB"
}
}