sparkles: Add bundles to post-install hooks (#171)

* 🤖 Add bundles and sysext test

*  Exec bundles also after install

* 🤖 Adapt tests

* 🎨 Create dir only if doesn't exist

* 🎨 Return err on mount

* 🎨 Make bundle errors failure as an option

* 🎨 Minor fixups

* debug

* 🤖 Fix spec

* 🤖 Get correct version for bundle test

* 🎨 Fixups

* 🤖 systemd-sysext is available only on opensuse for now
This commit is contained in:
Ettore Di Giacinto
2022-10-03 00:16:01 +02:00
committed by Itxaka
parent b1396c541b
commit a8875f6b4f
4 changed files with 39 additions and 18 deletions

View File

@@ -11,7 +11,8 @@ type Interface interface {
var All = []Interface{
&RunStage{}, // Shells out to stages defined from the container image
&GrubOptions{}, // Set custom GRUB options
&Lifecycle{}, // Handles poweroff/reboot by config options
&BundleOption{},
&Lifecycle{}, // Handles poweroff/reboot by config options
}
func Run(c config.Config, hooks ...Interface) error {