1
0

Implements modules preload list

This commit is contained in:
2020-06-14 20:14:59 +00:00
parent 2f5f1db0db
commit 22a8e32e2c
13 changed files with 312 additions and 3 deletions

View File

@ -102,6 +102,12 @@ func (d Duration) MarshalTOML() (data []byte, err error) {
return
}
type PreloadModule struct {
Repo string
Path string
TimeoutAfterLoad Duration
}
// Artifact is for .out-of-tree.toml
type Artifact struct {
Name string
@ -125,6 +131,8 @@ type Artifact struct {
DisableKaslr bool
DisableKpti bool
}
Preload []PreloadModule
}
func (ka Artifact) checkSupport(ki KernelInfo, km KernelMask) (