From: Daan De Meyer Date: Thu, 22 Feb 2024 10:48:16 +0000 (+0100) Subject: Make sure we're root in the sandbox when invoking pacman X-Git-Tag: v21~35^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c264a3e2648a47b31eee2fa398f1dbeee135dc;p=thirdparty%2Fmkosi.git Make sure we're root in the sandbox when invoking pacman --- diff --git a/mkosi/installer/pacman.py b/mkosi/installer/pacman.py index de240f531..1c5982ad8 100644 --- a/mkosi/installer/pacman.py +++ b/mkosi/installer/pacman.py @@ -165,6 +165,9 @@ class Pacman(PackageManager): *cls.mounts(context), *sources, "--chdir", "/work/src", + # pacman will fail unless invoked as root so make sure we're uid/gid 0 in the sandbox. + "--uid", "0", + "--gid", "0", ], ) + (apivfs_cmd(context.root) if apivfs else []) ),