diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-08 13:29:23 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-08 13:29:58 +0900 |
| commit | e3520835bb0e896eda86132cad2ba9bc4ac4765f (patch) | |
| tree | b78b6a14cb0eaaf1642facdd7a89b854d40d0f5b /internal/rosa | |
| parent | 0e568477546ba08b5fd3f040223f41a6c24b812d (diff) | |
cmd/mbf: optionally register all targets
This enables non-native cures from the daemon.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa')
| -rw-r--r-- | internal/rosa/stage0.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/rosa/stage0.go b/internal/rosa/stage0.go index 1862e47a..65274885 100644 --- a/internal/rosa/stage0.go +++ b/internal/rosa/stage0.go @@ -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 +} |
