From 7aea1c9e80f20a9bde573b88125a884b9a0ec79f Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 28 Oct 2024 21:12:19 +0100 Subject: mkosi: Move copying packages to the output directory to the postinst script Now that we have the mkosi.clangd script to run clangd from the mkosi build script, it becomes clear that doing cleanup with mkosi.clean has a big gap in that we always run the mkosi.clean script and thus we also run it when we run the mkosi.clangd script, causing the previously built packages to be removed when we run clangd without producing new ones. In mkosi we're improving the situation by only running clean scripts when we clean up the output directory and disallowing writing to the output directory from build scripts. Let's adapt systemd to these changes by moving the copying of packages to the output directory to the postinst script. --- mkosi.functions | 2 -- 1 file changed, 2 deletions(-) (limited to 'mkosi.functions') diff --git a/mkosi.functions b/mkosi.functions index 993f2e8a39..c1a4a1dee5 100644 --- a/mkosi.functions +++ b/mkosi.functions @@ -52,6 +52,4 @@ EOF --copy-source="$1" \ --pretty=no \ "$BUILDDIR"/systemd.raw - - cp "$BUILDDIR"/systemd.raw "$OUTPUTDIR" } -- cgit v1.2.3