diff options
Diffstat (limited to 'internal/rosa/all.go')
| -rw-r--r-- | internal/rosa/all.go | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/internal/rosa/all.go b/internal/rosa/all.go index 6ffbad40..0c80c706 100644 --- a/internal/rosa/all.go +++ b/internal/rosa/all.go @@ -10,7 +10,17 @@ import ( type PArtifact int const ( - ACL PArtifact = iota + // ImageInitramfs is the Rosa OS initramfs archive. + ImageInitramfs PArtifact = iota + + // Kernel is the generic Rosa OS Linux kernel. + Kernel + // KernelHeaders is an installation of kernel headers for [Kernel]. + KernelHeaders + // KernelSource is a writable kernel source tree installed to [AbsUsrSrc]. + KernelSource + + ACL ArgpStandalone Attr Autoconf @@ -42,9 +52,6 @@ const ( Hakurei HakureiDist IniConfig - Kernel - KernelHeaders - KernelSource Kmod LibXau Libcap @@ -148,6 +155,12 @@ func (t Toolchain) Load(p PArtifact) pkg.Artifact { // ResolveName returns a [PArtifact] by name. func ResolveName(name string) (p PArtifact, ok bool) { p, ok = map[string]PArtifact{ + "initramfs-image": ImageInitramfs, + + "kernel": Kernel, + "kernel-headers": KernelHeaders, + "kernel-source": KernelSource, + "acl": ACL, "argp-standalone": ArgpStandalone, "attr": Attr, @@ -180,9 +193,6 @@ func ResolveName(name string) (p PArtifact, ok bool) { "hakurei": Hakurei, "hakurei-dist": HakureiDist, "iniconfig": IniConfig, - "kernel": Kernel, - "kernel-headers": KernelHeaders, - "kernel-source": KernelSource, "kmod": Kmod, "libXau": LibXau, "libcap": Libcap, |
