From 9fc3a5ddfa1cab5d41a7c3b96312eaa9a920572b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 10 Nov 2025 23:19:35 +0000 Subject: [PATCH] build-sys: Reinstall fedora-bootc-destructive-cleanup script When commit cd8fa591 moved unit enablement to a systemd generator, it also removed the installation of the fedora-bootc-destructive-cleanup script from the Makefile. This was unintentional - while the symlink enablement should be handled by the generator, the script itself still needs to be installed. The trap is that because we weren't accurately removing old files from the build, the old version was still there...until the new upstream release. Fix this in two ways: First, continue to install the script on Fedora-like systems as before, but leave unit enablement to the generator as intended. Second, change how we remove prior state to clean out all files from the RPM. (I did look at changing out the build system so we build an RPM in this case which would be cleaner, but it's a large change) Fixes: https://github.com/bootc-dev/bootc/issues/1748 Assisted-by: Claude Code (Sonnet 4.5) Signed-off-by: Colin Walters --- Dockerfile | 7 ++++--- Makefile | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f15c9635..82691c59c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,9 +72,6 @@ FROM base ARG variant RUN <