Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
filesystem-prep $cs
pidnamespace-prep $cs
-# in- $cs ps -efH
-#false
-
in- $cs bash -xec '
if test -h /var/cache/apt/archives &&
! test -d /var/cache/apt/archives; then
'
: remove redundant packages
-# apt-mark showmanual |sort >$tmp/$cs-mark-manual
perl -ne '
next unless m{^Tests:.*\s'"$tname"'\s}..m{^$};
next unless m{^Depends:}...m{^\S};
next if m{^(?:iptables|rsyslog|authbind)$} && '"$cs"' eq "server";
print;
' $tmp/$cs-unwanted-deps)
-# join $tmp/$cs-unwanted-deps
in- $cs apt-mark auto $unwanted_deps
in- $cs apt-get -y autoremove