]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Remove access to the output directory in build scripts 3146/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 28 Oct 2024 20:27:30 +0000 (21:27 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 28 Oct 2024 20:27:30 +0000 (21:27 +0100)
commit3384ede4e7424c7ec87fbe2504a54604bd19da51
tree95fde9741ff3750bb528f081e6d805cff1b379f1
parentc8c34eef21e4430ed3a6503b285154fe8817cfa7
Remove access to the output directory in build scripts

With mkosi -t none, we can rerun the build script without cleaning
the output directory. This creates an awkward situation, as the build
script might create new outputs but is unable to remove previous ones,
which could lead to weird situations where the output directory contains
artifacts from multiple builds.

Let's tighten this up by disallowing access to the output directory in
build scripts. Users can still copy from the build script to the output
directory by doing the copy from a post-installation script which is not
invoked when we run mkosi -t none so it only runs when we've cleaned up
the output directory.
mkosi/__init__.py
mkosi/resources/man/mkosi.1.md
mkosi/resources/man/mkosi.news.7.md