From 83f165ec91cb953fe41ca77073b6d4f9b16599bb Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 26 Sep 2017 22:39:09 -0400 Subject: [PATCH] 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. --- live-build/auto/build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index 5c7b88ce..9f4b1593 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -45,6 +45,12 @@ Expire-Date: 0 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 \ --divert /usr/sbin/update-initramfs.REAL --rename \ /usr/sbin/update-initramfs"