Bring UKI to a working state (#97)

- Mount the needed base mounts (/proc /dev /sys /tmp)
 - Use our own console for yip (required to add the PATH under uki)
 - Order the DAG in a proper way (was out of order and not working)

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-03-14 10:33:38 +01:00
committed by GitHub
parent a66799f97c
commit 8f7d808dec
7 changed files with 175 additions and 21 deletions

View File

@@ -56,9 +56,9 @@ func RunStage(stage string) (bytes.Buffer, error) {
var buffer bytes.Buffer
log := logrus.New()
log.SetOutput(&buffer)
log.SetLevel(logrus.DebugLevel)
log.SetLevel(logrus.InfoLevel)
yip := NewYipExecutor(log)
c := console.NewStandardConsole(console.WithLogger(log))
c := ImmucoreConsole{}
stageBefore := fmt.Sprintf("%s.before", stage)
stageAfter := fmt.Sprintf("%s.after", stage)