1
0
forked from rosa/hakurei

cmd/mbf: optionally register all targets

This enables non-native cures from the daemon.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-08 13:29:23 +09:00
parent 0e56847754
commit e3520835bb
3 changed files with 52 additions and 40 deletions

View File

@@ -49,3 +49,12 @@ func init() {
Description: "Rosa OS stage0 bootstrap seed",
}
}
// HasStage0 returns whether a stage0 distribution is available.
func HasStage0() (ok bool) {
func() {
defer func() { ok = recover() == nil }()
toolchainStage0.Load(stage0Dist)
}()
return
}