From ebe7ab1f51e93c4ba5925cae070f07ad22ddc76d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 13 Sep 2025 20:08:42 +0200 Subject: [PATCH] tzupdate may be available but without internet --- configs/airootfs/root/configurator | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/airootfs/root/configurator b/configs/airootfs/root/configurator index f8776aa..85500b0 100644 --- a/configs/airootfs/root/configurator +++ b/configs/airootfs/root/configurator @@ -95,6 +95,11 @@ user_form() { # Pick timezone if command -v tzupdate >/dev/null; then geo_guessed_timezone=$(tzupdate -p 2>/dev/null) + else + geo_guessed_timezone="" + fi + + if [[ -n $geo_guessed_timezone ]]; then timezone=$(timedatectl list-timezones | gum choose --height 10 --selected "$geo_guessed_timezone" --header "Timezone") || abort else timezone=$(timedatectl list-timezones | gum filter --height 10 --header "Timezone") || abort @@ -361,4 +366,3 @@ if [[ $1 == "dry" ]]; then rm user_configuration.json user_credentials.json user_full_name.txt user_email_address.txt fi -