if we're using SUBPROJECT=minimize, and tzdata is not installed, remove

files that have been left behind.  This is a workaround for a bug that should
be fixed in tzdata.
core-include-dmsetup
Steve Langasek 7 years ago committed by Balint Reczey
parent cd15b730f7
commit bd2a11774f

@ -31,6 +31,12 @@ Expire-Date: 0
lb bootstrap "$@" lb bootstrap "$@"
if [ "$SUBPROJECT" = minimize ] \
&& ! Chroot chroot dpkg -l tzdata 2>&1 |grep -q ^ii; then
# workaround for tzdata purge not removing these files
rm -f chroot/etc/localtime chroot/etc/timezone
fi
Chroot chroot "dpkg-divert --quiet --add \ Chroot chroot "dpkg-divert --quiet --add \
--divert /usr/sbin/update-initramfs.REAL --rename \ --divert /usr/sbin/update-initramfs.REAL --rename \
/usr/sbin/update-initramfs" /usr/sbin/update-initramfs"

Loading…
Cancel
Save