diff --git a/internal/configs/configs.go b/internal/configs/configs.go index 0ff868f..a77ed95 100644 --- a/internal/configs/configs.go +++ b/internal/configs/configs.go @@ -117,6 +117,12 @@ func InitConfigs() { fmt.Sprintf("%s/grub", config.Path.DEFAULT), } + // If we are using grubby + if config.Bootloader == "grubby" { + // Do not create an empty /etc/default/grub file + files = files[:len(files)-1] + } + for _, conffile := range files { // Get the system file path sysfile := syspath_re.ReplaceAllString(conffile, "")