From af197b3468c1b2bf308df82a82807c19dd18606a Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Thu, 2 Oct 2025 23:28:10 +0200 Subject: geoip: T7926: Refactor geoip handling --- data/live-build-config/hooks/live/40-init-geoip-database.chroot | 3 +++ data/live-build-config/rootfs/excludes | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/live-build-config/hooks/live/40-init-geoip-database.chroot b/data/live-build-config/hooks/live/40-init-geoip-database.chroot index 4f9186c3..9f939f0a 100755 --- a/data/live-build-config/hooks/live/40-init-geoip-database.chroot +++ b/data/live-build-config/hooks/live/40-init-geoip-database.chroot @@ -14,3 +14,6 @@ if [ $? -ne 0 ]; then echo "Failed to download GeoIP database" rm $OUT_PATH fi + +# Generate sqlite database +python3 /usr/libexec/vyos/geoip-update.py --init diff --git a/data/live-build-config/rootfs/excludes b/data/live-build-config/rootfs/excludes index 558e637b..b824c57c 100644 --- a/data/live-build-config/rootfs/excludes +++ b/data/live-build-config/rootfs/excludes @@ -45,7 +45,7 @@ usr/local/games/* # T5511: We do not need any caches on the system (will be recreated when needed). # T7278: We need directory created by python3-cracklib for password checks -var/cache/!(cracklib) +var/cache/!(cracklib|vyos) # T5511: We do not need any log-files on the system (will be recreated when needed). var/log/*.log -- cgit v1.2.3