It's not a clear cut case whether the sandbox needs a build or not.
The needs_build() method was originally intended for verbs that need
a full image build but the sandbox build only needs the tools tree.
Also, the tools tree is only built if ToolsTree=default and not if
set explicitly.
More practically, we don't want the JSON history from .mkosi-private
to be used when using mkosi sandbox, and that's the only usage of
the needs_build() method, so to fix that problem let's remove the sandbox
verb from needs_build().
return
- assert args.verb.needs_build()
+ assert args.verb == Verb.sandbox or args.verb.needs_build()
if (
tools
Verb.serve,
Verb.burn,
Verb.sysupdate,
- Verb.sandbox,
)
def needs_config(self) -> bool: