aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/util-linux.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-01 23:54:40 +0900
committerOphestra <cat@gensokyo.uk>2026-03-02 01:24:50 +0900
commitcc60e0d15d79916a69c8a1caeb3c4611351bb6c4 (patch)
tree67f4f59ed7ba7b18af51338e56ffa8d9acf52da6 /internal/rosa/util-linux.go
parent9deaf853f0676ee4475468bffd35aae7e1160a74 (diff)
internal/rosa/make: migrate to helper interface
This also updates all affected artifacts to use new behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/util-linux.go')
-rw-r--r--internal/rosa/util-linux.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/rosa/util-linux.go b/internal/rosa/util-linux.go
index 8dc0f292..d6f4aba5 100644
--- a/internal/rosa/util-linux.go
+++ b/internal/rosa/util-linux.go
@@ -11,17 +11,17 @@ func (t Toolchain) newUtilLinux() pkg.Artifact {
version = "2.41.3"
checksum = "gPTd5JJ2ho_Rd0qainuogcLiiWwKSXEZPXN3yCCRl0m0KBgMaqwFuMjYgu9z8zCH"
)
- return t.NewViaMake("util-linux", version, pkg.NewHTTPGetTar(
+ return t.NewPackage("util-linux", version, pkg.NewHTTPGetTar(
nil, "https://www.kernel.org/pub/linux/utils/util-linux/"+
"v"+strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+
"/util-linux-"+version+".tar.gz",
mustDecode(checksum),
pkg.TarGzip,
- ), &MakeAttr{
+ ), &PackageAttr{
ScriptEarly: `
ln -s ../system/bin/bash /bin/
`,
-
+ }, &MakeHelper{
Configure: [][2]string{
{"disable-use-tty-group"},
{"disable-makeinstall-setuid"},
@@ -41,9 +41,9 @@ ln -s ../system/bin/bash /bin/
// Don't execute on production system!
SkipCheck: true,
},
- t.Load(Bash),
+ Bash,
- t.Load(KernelHeaders),
+ KernelHeaders,
)
}
func init() { artifactsF[UtilLinux] = Toolchain.newUtilLinux }