Skip to content

Commit c0b2a0e

Browse files
committed
Add: Prepare for efibootimg
1 parent 9934711 commit c0b2a0e

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

alteriso5/work/boot/efibootimg.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package boot
2+
3+
// TODO: Implement MakeEfiBootImg
4+
func MakeEfiBootImg(dest string, size int64) error {
5+
return nil
6+
}

alteriso5/work/build.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func (work Work) Build(p config.Profile, t config.Target, c *cobra.Command) erro
1818
work.Dirs = dirs
1919

2020
tasks := []*BuildTask{
21+
validate,
2122
makeBaseDirs,
2223
makeCustomAirootfs,
2324
makeChroot,

alteriso5/work/task-bootmode-uefi.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ var makeCommonSystemdBootConfig *BuildTask = NewBuildTask("makeCommonSystemdBoot
6666
}
6767

6868
slog.Debug("Found files for efiboot", "files", efiboot_files)
69+
6970
}
7071

7172
// For efiboot files
@@ -81,7 +82,8 @@ var makeCommonSystemdBootConfig *BuildTask = NewBuildTask("makeCommonSystemdBoot
8182
}
8283

8384
slog.Debug("efiboot img size", "size", total)
84-
return nil
85+
86+
return boot.MakeEfiBootImg(path.Join(w.Base, "efiboot.img"), total)
8587
})
8688

8789
var makeCommonSystemdBoot *BuildTask = NewBuildTask("makeCommonSystemdBoot", func(w Work) error {

alteriso5/work/task-validate.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package work
2+
3+
var validate *BuildTask = NewBuildTask("validate", func(w Work) error {
4+
return nil
5+
})

0 commit comments

Comments
 (0)