cmd/mbf: optionally register all targets
All checks were successful
Test / Create distribution (push) Successful in 2m53s
Test / Sandbox (push) Successful in 7m1s
Test / Hakurei (push) Successful in 8m58s
Test / ShareFS (push) Successful in 9m25s
Test / Sandbox (race detector) (push) Successful in 9m30s
Test / Hakurei (race detector) (push) Successful in 12m26s
Test / Flake checks (push) Successful in 2m36s

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
}