RFE on febootstrap-minimize: remove yumdb (RHBZ#528685)
authorAlexey Torkhov <atorkhov@gmail.com>
Tue, 13 Oct 2009 13:46:09 +0000 (14:46 +0100)
committerRichard Jones <rjones@redhat.com>
Tue, 13 Oct 2009 13:46:09 +0000 (14:46 +0100)
febootstrap-minimize.pod
febootstrap-minimize.sh

index 96cb177..e05b1c7 100644 (file)
@@ -81,8 +81,8 @@ Keep or drop all timezones (except UTC which is never deleted).
 
 =item B<--drop-rpmdb>
 
-Keep or drop the RPM package database.  Obviously RPM will be
-completely non-functional if you drop this.
+Keep or drop the RPM and YUM package databases.  Obviously RPM and YUM will be
+completely non-functional if you drop these.
 
 =item B<--keep-yum-cache>
 
index efee844..0004d03 100755 (executable)
@@ -213,6 +213,8 @@ fi
 if [ "$keep_rpmdb" != "yes" ]; then
     febootstrap-run "$target" -- rm -rf var/lib/rpm
     febootstrap-run "$target" -- mkdir -p --mode=0755 var/lib/rpm
+    febootstrap-run "$target" -- rm -rf var/lib/yum
+    febootstrap-run "$target" -- mkdir -p --mode=0755 var/lib/yum
 fi
 
 if [ "$keep_yum_cache" != "yes" ]; then