Skip to content

Commit 22df875

Browse files
committed
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 <ckyrouac@redhat.com>
1 parent d01e723 commit 22df875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎contrib/scripts/fedora-bootc-destructive-cleanup‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -xeuo pipefail
55

66
# Remove all RPMs installed in the physical root (i.e. the previous OS)
77
mount -o remount,rw /sysroot
8-
rpm -qa --root=/sysroot --dbpath=/usr/lib/sysimage/rpm | xargs -r rpm -e --root=/sysroot --dbpath=/usr/lib/sysimage/rpm
8+
rpm -qa --root=/sysroot --dbpath=/usr/lib/sysimage/rpm | xargs -r rpm -e --noscripts --root=/sysroot --dbpath=/usr/lib/sysimage/rpm
99

1010
# Remove all container images (including the one that was used to install)
1111
# Note that this does not remove stopped containers, and so some storage

0 commit comments

Comments
 (0)