mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-18 07:50:38 +00:00
[uki] Lyfecycle (#148)
This commit is contained in:
@@ -30,6 +30,15 @@ var FirstBoot = []Interface{
|
||||
&GrubPostInstallOptions{},
|
||||
}
|
||||
|
||||
// AfterUkiInstall sets which Hooks to run after uki runs the install action
|
||||
var AfterUkiInstall = []Interface{}
|
||||
|
||||
// AfterUkiReset sets which Hooks to run after uki runs the install action
|
||||
var AfterUkiReset = []Interface{}
|
||||
|
||||
// AfterUkiUpgrade sets which Hooks to run after uki runs the install action
|
||||
var AfterUkiUpgrade = []Interface{}
|
||||
|
||||
func Run(c config.Config, spec v1.Spec, hooks ...Interface) error {
|
||||
for _, h := range hooks {
|
||||
if err := h.Run(c, spec); err != nil {
|
||||
|
Reference in New Issue
Block a user