From 6c0c1cdde5a775cabc0b7611d6055fea1f202b8b Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 19 Apr 2024 11:03:43 +0200 Subject: [PATCH] Clean dnf history Otherwise, operations that we perform in %post will show up in the history of the installed system. Signed-off-by: Andrea Bolognani (cherry picked from commit a6e0b13c5d9da63f7c7d1c15a1a6af103df6c87c) --- fedora-riscv64-developer-f40.ks | 3 +++ fedora-riscv64-minimal-f40-experimental.ks | 3 +++ fedora-riscv64-minimal-f40-kiwi.ks | 3 +++ fedora-riscv64-minimal-f40.ks | 3 +++ 4 files changed, 12 insertions(+) diff --git a/fedora-riscv64-developer-f40.ks b/fedora-riscv64-developer-f40.ks index 7c26f62..8b60c3d 100644 --- a/fedora-riscv64-developer-f40.ks +++ b/fedora-riscv64-developer-f40.ks @@ -512,6 +512,9 @@ rm -f /var/lib/systemd/random-seed # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* +# Start with a clean dnf history +rm -rf /var/lib/dnf/history.* + # go ahead and pre-make the man -k cache (#455968) /usr/bin/mandb diff --git a/fedora-riscv64-minimal-f40-experimental.ks b/fedora-riscv64-minimal-f40-experimental.ks index 2bec8a9..97e78c9 100644 --- a/fedora-riscv64-minimal-f40-experimental.ks +++ b/fedora-riscv64-minimal-f40-experimental.ks @@ -190,6 +190,9 @@ rm -f /var/lib/systemd/random-seed # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* +# Start with a clean dnf history +rm -rf /var/lib/dnf/history.* + # go ahead and pre-make the man -k cache (#455968) /usr/bin/mandb diff --git a/fedora-riscv64-minimal-f40-kiwi.ks b/fedora-riscv64-minimal-f40-kiwi.ks index bd4c26d..8ed3704 100644 --- a/fedora-riscv64-minimal-f40-kiwi.ks +++ b/fedora-riscv64-minimal-f40-kiwi.ks @@ -187,6 +187,9 @@ rm -f /var/lib/systemd/random-seed # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* +# Start with a clean dnf history +rm -rf /var/lib/dnf/history.* + # go ahead and pre-make the man -k cache (#455968) /usr/bin/mandb diff --git a/fedora-riscv64-minimal-f40.ks b/fedora-riscv64-minimal-f40.ks index f268b3e..cb492a7 100644 --- a/fedora-riscv64-minimal-f40.ks +++ b/fedora-riscv64-minimal-f40.ks @@ -183,6 +183,9 @@ rm -f /var/lib/systemd/random-seed # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* +# Start with a clean dnf history +rm -rf /var/lib/dnf/history.* + # go ahead and pre-make the man -k cache (#455968) /usr/bin/mandb