From d8ca1cad737fc271970f0084a6caa864c36f73ae Mon Sep 17 00:00:00 2001 From: Ben Copeland Date: Thu, 30 Apr 2026 12:29:14 +0100 Subject: [PATCH] kbuild: initialise rpmdb before tuxmake build The binrpm-pkg target fails in containers where the RPM database has not been initialised, producing false build regressions. Signed-off-by: Ben Copeland --- kernelci/kbuild.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kernelci/kbuild.py b/kernelci/kbuild.py index 86f829c817..0e45449974 100644 --- a/kernelci/kbuild.py +++ b/kernelci/kbuild.py @@ -847,6 +847,7 @@ def _build_with_tuxmake(self): tuxmake_cmd = " ".join(cmd_parts) print(f"[_build_with_tuxmake] Command: {tuxmake_cmd}") print(f"[_build_with_tuxmake] Output directory: {self._af_dir}") + self.addcmd("rpmdb --initdb 2>/dev/null || true") self.addcmd("stage=1") # stage 1 failure is build failure self.addcmd(tuxmake_cmd) self.addcmd("stage=2")