From 735eb6ea419456e188cecb45b43edb52d9ba5dfd Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Tue, 1 Apr 2014 00:42:01 +0400 Subject: [PATCH] mediacheck: purge more packages No use to hunt make or diff file-by-file. Well this chroot should have been more lean in the first place (or a few files in initrd) but life is short so better use/baby/steps. --- .../mediacheck/mediacheck/image-scripts.d/99-cleanup-all | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features.in/mediacheck/mediacheck/image-scripts.d/99-cleanup-all b/features.in/mediacheck/mediacheck/image-scripts.d/99-cleanup-all index 181de59a..2c40053e 100755 --- a/features.in/mediacheck/mediacheck/image-scripts.d/99-cleanup-all +++ b/features.in/mediacheck/mediacheck/image-scripts.d/99-cleanup-all @@ -1,7 +1,9 @@ #!/bin/sh # everything needed should have been done within initrd when this boots -rpm -e --nodeps apt libapt rpm librpmbuild librpm 2>/dev/null ||: +list="$(rpm -qa apt diffutils libapt librpm* make rpm shadow-utils udev* vim*)" +[ -z "$list" ] || rpm -e --nodeps $list 2>/dev/null ||: + rm -rf /var/lib/apt /var/cache/apt /var/lib/rpm rm -rf /lib/modules rm -rf /usr/share