diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-21 22:19:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-21 22:20:01 +0900 |
| commit | 0615899e5666aa3a4c8aa9fb69622be411f33dab (patch) | |
| tree | 6275a071f50f34e528f043fe3716ad6310d43522 /internal/rosa/stage0.go | |
| parent | 0914569e62089f2a9545243c529d238c662d4b04 (diff) | |
internal/rosa: do not register stage0
Nothing can depend on this, so remove it from the namespace.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/stage0.go')
| -rw-r--r-- | internal/rosa/stage0.go | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/internal/rosa/stage0.go b/internal/rosa/stage0.go deleted file mode 100644 index a3bd8984..00000000 --- a/internal/rosa/stage0.go +++ /dev/null @@ -1,43 +0,0 @@ -package rosa - -import ( - "hakurei.app/fhs" - "hakurei.app/internal/pkg" -) - -// Stage0 is the handle of the stage0 distribution tarball built on the -// toolchain of stage [Std]. -var Stage0 = H("rosa-stage0") - -func init() { - meta := Metadata{ - Name: "rosa-stage0", - Description: "Rosa OS stage0 toolchain tarball for bootstrap", - Version: Unversioned, - } - native.MustRegister(meta.Name, func(t Toolchain) (*Metadata, pkg.Artifact) { - return &meta, t.New("rosa-stage0", 0, t.Append(nil, - H("bzip2"), - ), nil, nil, ` -umask 377 -tar \ - -vjc \ - -C /stage0 \ - -f /work/stage0-`+t.triple()+`.tar.bz2 \ - . -`, pkg.Path(fhs.AbsRoot.Append("stage0"), false, t.Append(nil, - LLVM, - Mksh, - _toyboxEarly, - )...)) - }) -} - -// HasStage0 returns whether a stage0 distribution is available. -func (s *S) HasStage0() (ok bool) { - func() { - defer func() { ok = recover() == nil }() - s.New(stageEarly).MustLoad(_stage0Dist) - }() - return -} |
