Skip to content

Commit bd1ae51

Browse files
committed
feat: Support override for bootloaders
1 parent 5b1f0e1 commit bd1ae51

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

alteriso/src/internal/archiso/profile_gen_bootloader.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/FascodeNet/alterlinux/src/internal/errors"
99
"github.com/FascodeNet/alterlinux/src/internal/utils"
10+
"github.com/Hayao0819/nahi/futils"
1011
"github.com/samber/lo"
1112
)
1213

@@ -25,6 +26,10 @@ func (p *Profile) generateBootloaderConfigs(outDir string) error {
2526
}
2627

2728
copyTargets := lo.FilterMap(dirs, func(item os.DirEntry, index int) (string, bool) {
29+
override_dir := path.Join(p.Path, item.Name())
30+
if futils.IsDir(override_dir) {
31+
return override_dir, true
32+
}
2833
return path.Join(p.BootloadersPath, item.Name()), item.IsDir()
2934
})
3035

0 commit comments

Comments
 (0)