]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Introduce --run-build-scripts (-R) to always run build scripts 3555/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Feb 2025 11:14:38 +0000 (12:14 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Feb 2025 13:17:37 +0000 (14:17 +0100)
commit6cc8dc4a93d634ed07af1fd5dfe1aaf4a4fb9826
treeb12a15ac0388882d5ac28aff41ebd20e96a25fb7
parentea21ffbb82e819baaaa850734571410608d208b7
Introduce --run-build-scripts (-R) to always run build scripts

Currently we run "mkosi -t none" in systemd and mkosi-kernel to run
the build script(s) without rebuilding the entire image. Using the
"none" output format for this purpose is a hack. It also breaks when
using History=yes as running mkosi -t none will change the output
format in the history after which running mkosi qemu will fail saying
it can't boot the "none" output format.

Let's introduce a --run-build-scripts argument which will make us always
run the build scripts regardless of whether the image has already been
built or not. At the same time, remove various behaviors from the "none"
format that were solely added to enable the hack of using it to run build
scripts without rebuilding the image:

- Clean up outputs from the previous build when the "none" output format
  is used
mkosi/__init__.py
mkosi/config.py
tests/test_json.py