mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-13 13:10:22 +00:00
fix(after-install): run after-install hook after partitions are encrypted
This commit is contained in:
@@ -13,7 +13,6 @@ var AfterInstall = []Interface{
|
||||
&GrubOptions{}, // Set custom GRUB options
|
||||
&BundlePostInstall{},
|
||||
&CustomMounts{},
|
||||
&Kcrypt{},
|
||||
&Lifecycle{}, // Handles poweroff/reboot by config options
|
||||
}
|
||||
|
||||
@@ -31,10 +30,16 @@ var FirstBoot = []Interface{
|
||||
}
|
||||
|
||||
// AfterUkiInstall sets which Hooks to run after uki runs the install action
|
||||
var AfterUkiInstall = []Interface{
|
||||
var AfterUkiInstall = []Interface{}
|
||||
|
||||
var UKIEncryptionHooks = []Interface{
|
||||
&KcryptUKI{},
|
||||
}
|
||||
|
||||
var EncryptionHooks = []Interface{
|
||||
&Kcrypt{},
|
||||
}
|
||||
|
||||
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