mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 19:31:31 +00:00
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.
This commit is contained in:
parent
3ed1f4fdd1
commit
83f165ec91
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user