From b6fbfc894f41c6c6c136c7ed9b5892d0fc3addae Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sat, 9 Nov 2024 21:50:37 +0100 Subject: [PATCH] manually set timezone --- airootfs/root/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airootfs/root/install.sh b/airootfs/root/install.sh index 37edac3..ed2b6cd 100644 --- a/airootfs/root/install.sh +++ b/airootfs/root/install.sh @@ -350,7 +350,7 @@ function installation() { installationSubtaskTitle "Install base-packages" - chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "apk add alpine-base --no-cache" || installationFailed + chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "apk add alpine-base tzdata --no-cache" || installationFailed installationSubtaskTitle "Overwrite default repositories" cp /etc/apk/repositories "${INSTALLATION_MOUNTPOINT}/etc/apk/repositories" || installationFailed @@ -362,7 +362,7 @@ function installation() { chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "setup-keymap ch ch" || installationFailed installationSubtaskTitle "Setting localtime to Europe/Zurich" - chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "setup-timezone Europe/Zurich" || installationFailed + chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "ln -s /usr/share/zoneinfo/Europe/Zurich /etc/localtime" || installationFailed installationSubtaskTitle "Time sync" chroot "${INSTALLATION_MOUNTPOINT}" /bin/ash -c "hwclock --systohc" || installationFailed