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.
This commit is contained in:
Michael Shigorin 2014-04-01 00:42:01 +04:00
parent 8abdb7402b
commit 735eb6ea41

View File

@ -1,7 +1,9 @@
#!/bin/sh #!/bin/sh
# everything needed should have been done within initrd when this boots # 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 /var/lib/apt /var/cache/apt /var/lib/rpm
rm -rf /lib/modules rm -rf /lib/modules
rm -rf /usr/share rm -rf /usr/share