Skip to content

Commit

Permalink
sandbox: check if bwrap is installed
Browse files Browse the repository at this point in the history
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 #2719.
  • Loading branch information
keszybz authored and behrmann committed May 22, 2024
1 parent a300d52 commit 87c900f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 87c900f

Please sign in to comment.