From 22df87512590880412b96cfc9c9e4351a42913a4 Mon Sep 17 00:00:00 2001 From: ckyrouac Date: Thu, 8 Oct 2026 21:37:17 +0000 Subject: [PATCH] contrib: Skip RPM scriptlets during cleanup This cleanup removes packages from the previous OS in a special root context. Their erase scriptlets can fail or act on the wrong system, so skip them. Fixes: #2559 Signed-off-by: ckyrouac --- contrib/scripts/fedora-bootc-destructive-cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/scripts/fedora-bootc-destructive-cleanup b/contrib/scripts/fedora-bootc-destructive-cleanup index bf3dc99e81..c39c4c5f2d 100644 --- a/contrib/scripts/fedora-bootc-destructive-cleanup +++ b/contrib/scripts/fedora-bootc-destructive-cleanup @@ -5,7 +5,7 @@ set -xeuo pipefail # Remove all RPMs installed in the physical root (i.e. the previous OS) mount -o remount,rw /sysroot -rpm -qa --root=/sysroot --dbpath=/usr/lib/sysimage/rpm | xargs -r rpm -e --root=/sysroot --dbpath=/usr/lib/sysimage/rpm +rpm -qa --root=/sysroot --dbpath=/usr/lib/sysimage/rpm | xargs -r rpm -e --noscripts --root=/sysroot --dbpath=/usr/lib/sysimage/rpm # Remove all container images (including the one that was used to install) # Note that this does not remove stopped containers, and so some storage