stage2, install2: oops, narrow the cleanup back

The former install2-only "bloated binary" purge script
happened to hit stage2 (which is a lot more than just
install2); a kind of safety net has been stuck into it
to guard installable LiveCDs against this particular
cleanup but seems it was not enought for ildar@ who
reported this problem almost three years after it was
introduced.

This change re-places the script back into install2
section; the binaries in question amount for ca. 8 Mb
(except openssl ildar@ asked about); if these are deemed
unneccessary within any other stage2-based subprofiles,
please step up with details.
This commit is contained in:
Michael Shigorin 2015-03-03 15:35:25 +03:00
parent 0a7c57a5b1
commit 7cb477c38a
2 changed files with 8 additions and 11 deletions

View File

@ -0,0 +1,8 @@
#!/bin/sh
# purge outstanding binaries (up to 1.5M each)
rm -f /sbin/{sash,sln,tc}
rm -f /usr/bin/{openssl,ipv6log*}
rm -f /bin/ipv6calc
:

View File

@ -1,11 +0,0 @@
#!/bin/sh
# don't cripple the image to be copied over
[ -x /usr/sbin/live-install -o -x /usr/sbin/livecd-install ] && exit 0
# purge outstanding binaries
rm -f /sbin/{sash,sln,tc}
rm -f /usr/bin/{openssl,ipv6log*}
rm -f /bin/ipv6calc
: