Returns whether the Bootloader is BLSCompatible Throws and error if Bootloader is None
(&self)
| 286 | /// Returns whether the Bootloader is BLSCompatible |
| 287 | /// Throws and error if Bootloader is None |
| 288 | pub(crate) fn kind(&self) -> Result<BootloaderKind> { |
| 289 | match self { |
| 290 | Bootloader::Grub => Ok(BootloaderKind::GRUBClassic), |
| 291 | Bootloader::Systemd | Bootloader::GrubCC => Ok(BootloaderKind::BLSCompatible), |
| 292 | Bootloader::None => anyhow::bail!("Bootloader was None"), |
| 293 | } |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | /// A bootable entry |
no outgoing calls
no test coverage detected