From 9e9cf2f576120677df74ede0a48729f2241b80ea Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 13 Sep 2025 20:13:24 +0200 Subject: [PATCH] Let's do it up front --- configs/airootfs/root/configurator | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/airootfs/root/configurator b/configs/airootfs/root/configurator index b270392..b64f1cd 100644 --- a/configs/airootfs/root/configurator +++ b/configs/airootfs/root/configurator @@ -3,6 +3,9 @@ # Rely on Omarchy for styling and error handling source "$OMARCHY_INSTALL/helpers/all.sh" +# Ensure tzupdate is available for guessing timezone +command -v tzupdate >/dev/null || sudo pacman -Sy --noconfirm tzupdate + abort() { gum style "${1:-Aborted installation}" echo @@ -89,7 +92,6 @@ user_form() { done # Pick timezone - command -v tzupdate >/dev/null || sudo pacman -Sy --noconfirm tzupdate geo_guessed_timezone=$(tzupdate -p 2>/dev/null) if [[ -n $geo_guessed_timezone ]]; then