Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
! test -d /var/cache/apt/archives; then
rm /var/cache/apt/archives
fi
+
+ # On systemd systems, /dev/log is a symlink into /run/systemd,
+ # but we cannot run systemd in the inner environment,
+ # so we use rsyslog. Clean out the symlink.
+ #
+ # The check for systemd is to let this test be less destructive
+ # when run under inadequate isolation on a non-systemd setup.
+ if ls -al /dev/log | grep systemd; then
+ rm -f /dev/log
+ fi
'
: remove redundant packages