diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-28 03:05:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-28 04:12:42 +0900 |
| commit | 53e9dd6aa933c1a5b43da83a88d5e07bf27285bf (patch) | |
| tree | 75d23f52901368c2e9764df631d37b8eb7484723 /internal/rosa/state.go | |
| parent | 7e3ba55cdc4d4a7c19deb65879e8abbb12a8e458 (diff) | |
internal/rosa: do not hard code prefix
This allows the prefix to be changed, at runtime if needed.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
| -rw-r--r-- | internal/rosa/state.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/rosa/state.go b/internal/rosa/state.go index fb7fa4f8..febde19f 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -299,7 +299,7 @@ func Arches(qemu *check.Absolute) iter.Seq2[string, container.BinfmtEntry] { var interpreter *check.Absolute if qemu != nil { interpreter = qemu.Append( - "system/bin", + prefixR+"/bin", "qemu-"+name, ) } @@ -526,6 +526,8 @@ func (s *S) getFrame() azalea.Frame { } s.frame.Val = map[unique.Handle[azalea.Ident]]any{ + k("prefix"): Prefix, + k("prefixR"): prefixR, k("unversioned"): Unversioned, k("hostTriple"): triple(native), |
