summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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