Implement grubby support

This commit is contained in:
HikariKnight 2023-04-11 01:49:06 +02:00
parent 7081bfa8d7
commit ff5d20f4f9
2 changed files with 28 additions and 4 deletions

View file

@ -163,6 +163,14 @@ func (m *model) install(auth string) {
// Configure kernelstub
configs.Set_KernelStub()
} else if config.Bootloader == "grubby" {
// Write to logger
logger.Printf("Configuring bootloader using grubby")
// Configure kernelstub
configs.Set_Grubby()
} else if config.Bootloader == "unknown" {
kernel_args := fileio.ReadFile(config.Path.CMDLINE)
fmt.Printf("Unsupported bootloader, please add the below line to your bootloaders kernel arguments\n%s", kernel_args)