stage2: set timezone properly

pull/207/merge
Serge Schneider 2018-10-11 16:39:39 +01:00
parent 7ccf8185b3
commit 33e94c46f3
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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