summaryrefslogtreecommitdiff
path: root/stage2
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2018-10-11 16:39:39 +0100
committerSerge Schneider <serge@raspberrypi.org>2018-10-11 17:20:18 +0100
commit33e94c46f32fb2e9b1f7106d7a790f074815dfd1 (patch)
treef8c651169cce9ab6290f499fc9abd4beaaf0a1ed /stage2
parent7ccf8185b39062afe399f2bdd2b327f5f4460327 (diff)
stage2: set timezone properly
Diffstat (limited to 'stage2')
-rw-r--r--stage2/01-sys-tweaks/00-debconf2
-rwxr-xr-xstage2/03-set-timezone/02-run.sh8
2 files changed, 8 insertions, 2 deletions
diff --git a/stage2/01-sys-tweaks/00-debconf b/stage2/01-sys-tweaks/00-debconf
index 35839c3..96aa9b0 100644
--- a/stage2/01-sys-tweaks/00-debconf
+++ b/stage2/01-sys-tweaks/00-debconf
@@ -7,8 +7,6 @@ console-setup console-setup/codeset47 select Guess optimal character set
# Font for the console:
# Choices: Fixed, Goha, GohaClassic, Terminus, TerminusBold, TerminusBoldVGA, VGA, Do not change the boot/kernel font, Let the system select a suitable font
console-setup console-setup/fontface47 select Do not change the boot/kernel font
-tzdata tzdata/Areas select Europe
-tzdata tzdata/Zones/Europe select London
# Key to function as AltGr:
# Choices: The default for the keyboard layout, No AltGr key, Right Alt (AltGr), Right Control, Right Logo key, Menu key, Left Alt, Left Logo key, Keypad Enter key, Both Logo keys, Both Alt keys
keyboard-configuration keyboard-configuration/altgr select The default for the keyboard layout
diff --git a/stage2/03-set-timezone/02-run.sh b/stage2/03-set-timezone/02-run.sh
new file mode 100755
index 0000000..67cbfd3
--- /dev/null
+++ b/stage2/03-set-timezone/02-run.sh
@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+echo "Europe/London" > "${ROOTFS_DIR}/etc/timezone"
+rm "${ROOTFS_DIR}/etc/localtime"
+
+on_chroot << EOF
+dpkg-reconfigure -f noninteractive tzdata
+EOF