]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
sandbox: check if bwrap is installed
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 May 2024 12:24:12 +0000 (14:24 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 22 May 2024 17:11:43 +0000 (19:11 +0200)
bwrap is used for many many different things, so I just added a blanket
check that requires is to be always required if use any of the verbs that
call check_tools().

Fixes https://github.com/systemd/mkosi/issues/2719.

mkosi/__init__.py

index 08e1fb5844bb93cd59847860f480585ab2e361b2..4bd9b660628d338c065f64397ae368048135ae96 100644 (file)
@@ -2724,6 +2724,8 @@ def check_systemd_tool(
 
 
 def check_tools(config: Config, verb: Verb) -> None:
+    check_tool(config, "bwrap", reason="execute sandboxed commands")
+
     if verb == Verb.build:
         if config.bootable != ConfigFeature.disabled:
             check_tool(config, "depmod", reason="generate kernel module dependencies")