summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2025-10-02 23:28:10 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2026-01-21 12:04:08 +0100
commitaf197b3468c1b2bf308df82a82807c19dd18606a (patch)
tree4bf44c538ab60d0f9d2fdafca324f01c903600d9
parent8be4398b579dce7fd482c41706e804604f3b7763 (diff)
downloadvyos-build-af197b3468c1b2bf308df82a82807c19dd18606a.tar.gz
vyos-build-af197b3468c1b2bf308df82a82807c19dd18606a.zip
geoip: T7926: Refactor geoip handling
-rwxr-xr-xdata/live-build-config/hooks/live/40-init-geoip-database.chroot3
-rw-r--r--data/live-build-config/rootfs/excludes2
2 files changed, 4 insertions, 1 deletions
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