[Fedora-spins] [spin-kickstarts] Need to remove rpm db files after running rpm in the post section.

Bruno Wolff III bruno at fedoraproject.org
Wed Jan 26 06:56:11 UTC 2011


commit 60096ceccebe4542e972dbbf877427a850ba3268
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Wed Jan 26 00:51:41 2011 -0600

    Need to remove rpm db files after running rpm in the post section.

 fedora-live-base.ks   |    2 ++
 fedora-live-mini.ks   |    2 ++
 fedora-livecd-soas.ks |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index 0043756..ac929c8 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -309,6 +309,8 @@ rm -f /var/lib/rpm/__db*
 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
 echo "Packages within this LiveCD"
 rpm -qa
+# Note that running rpm recreates the rpm db files which aren't needed or wanted
+rm -f /var/lib/rpm/__db*
 
 # go ahead and pre-make the man -k cache (#455968)
 /usr/bin/mandb
diff --git a/fedora-live-mini.ks b/fedora-live-mini.ks
index 3f522a4..7bbe5b9 100644
--- a/fedora-live-mini.ks
+++ b/fedora-live-mini.ks
@@ -374,6 +374,8 @@ chmod 755 /etc/rc.d/init.d/livesys-late
 # work around for poor key import UI in PackageKit
 rm -f /var/lib/rpm/__db*
 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
+# Note that running rpm recreates the rpm db files which aren't needed or wanted
+rm -f /var/lib/rpm/__db*
 
 # go ahead and pre-make the man -k cache (#455968)
 /usr/bin/mandb
diff --git a/fedora-livecd-soas.ks b/fedora-livecd-soas.ks
index ccd4104..eb00ac3 100644
--- a/fedora-livecd-soas.ks
+++ b/fedora-livecd-soas.ks
@@ -107,6 +107,8 @@ libertas-usb8388-firmware
 KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
 /usr/sbin/plymouth-set-default-theme sugar
 /sbin/dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
+# Note that running rpm recreates the rpm db files which aren't needed or wanted
+rm -f /var/lib/rpm/__db*
 
 # Get proper release naming in the control panel
 cat >> /boot/olpc_build << EOF


More information about the spins mailing list