Do not create an empty config/etc/default/grub file if bootloader is grubby
This commit is contained in:
parent
c568accadf
commit
f7c98e67ca
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ func InitConfigs() {
|
||||||
fmt.Sprintf("%s/grub", config.Path.DEFAULT),
|
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 {
|
for _, conffile := range files {
|
||||||
// Get the system file path
|
// Get the system file path
|
||||||
sysfile := syspath_re.ReplaceAllString(conffile, "")
|
sysfile := syspath_re.ReplaceAllString(conffile, "")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue