forked from rosa/hakurei
internal/rosa: resolve runtime for overlay extras
This is generally for system image creation, so this behaviour makes more sense. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -1008,9 +1008,9 @@ func (ctx *evalContext) pf(
|
|||||||
if o.P, err = check.NewAbs(overlay); err != nil {
|
if o.P, err = check.NewAbs(overlay); err != nil {
|
||||||
o.P = AbsUsrSrc.Append("extra", overlay)
|
o.P = AbsUsrSrc.Append("extra", overlay)
|
||||||
}
|
}
|
||||||
o.A = make([]pkg.Artifact, len(extraH))
|
extraA := ctx.t.Append(nil, extraH...)
|
||||||
for i, h := range extraH {
|
o.A = make([]pkg.Artifact, len(extraA))
|
||||||
_, a := ctx.t.MustLoad(h)
|
for i, a := range extraA {
|
||||||
o.A[i] = a
|
o.A[i] = a
|
||||||
}
|
}
|
||||||
attr.Paths = append(attr.Paths, o)
|
attr.Paths = append(attr.Paths, o)
|
||||||
|
|||||||
Reference in New Issue
Block a user