summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-02-05 16:55:20 +0100
committerGitHub <noreply@github.com>2026-02-05 16:55:20 +0100
commite5f9a274f4b9b573c73b5ed702b3caaeba8432ec (patch)
treee2105f98d9fb72b07cf75187e8a00ed97bd16811
parent598e6743aa10a93d8ffd434fec5d0e0ccc856743 (diff)
parentaf197b3468c1b2bf308df82a82807c19dd18606a (diff)
downloadvyos-build-e5f9a274f4b9b573c73b5ed702b3caaeba8432ec.tar.gz
vyos-build-e5f9a274f4b9b573c73b5ed702b3caaeba8432ec.zip
Merge pull request #1106 from sarthurdev/geoip_refactor
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