]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Rework --run-build-scripts 3585/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 6 Mar 2025 22:47:33 +0000 (23:47 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 7 Mar 2025 09:36:48 +0000 (10:36 +0100)
commit75f0b298168c1c3ad926d891284876a046761a4d
tree7fd20c2d2469e1af70ed9cfc16cd4c4f575c0c0d
parentb6a0ea5e739804b7f8c355ed972d735a3389c0fd
Rework --run-build-scripts

Instead of (optionally) building the image when this option is enabled,
let's insist that the image has already been built and cached. This allows
us to reuse the history of the previous build if History= is enabled. At
the same time, rename the option to --rerun-build-scripts to indicate more
clearly that the image needs to have been built once already.

This allows the option to be used in systemd's mkosi.clangd script to replace
"-t none" and "--incremental=strict" there.
mkosi/__init__.py
mkosi/config.py
mkosi/resources/man/mkosi.1.md
tests/test_json.py