From ddc5d61a59965d0a223d66ba5ee4431d773e1766 Mon Sep 17 00:00:00 2001 From: Joey Riches Date: Wed, 18 Sep 2024 10:03:44 +0100 Subject: [PATCH] builder: Start sccache server as root Follow up to 831440563c79bb96bb65613344b6d6208d2e3366 --- builder/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/util.go b/builder/util.go index 98ae682..b513236 100644 --- a/builder/util.go +++ b/builder/util.go @@ -298,7 +298,7 @@ CLEANUP: func StartSccache(dir string) { var buf bytes.Buffer - c := exec.Command("chroot", dir, "/bin/su", BuildUser, "-c", "sccache --start-server") + c := exec.Command("chroot", dir, "/bin/su", "root", "-c", "sccache --start-server") c.Stdout = &buf c.Stderr = &buf c.Env = slices.Clone(ChrootEnvironment)