Chroot: Manage timezone

This commit is contained in:
Jeremy Gardais 2019-04-03 23:13:29 +02:00
parent b057d1e3de
commit b8fff539b9
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 0 deletions

View File

@ -230,6 +230,13 @@ sed -i 's/^# \(en_US.UTF-8 UTF-8\)/\1/' /target/etc/locale.gen
#sed -i 's/^# \(fr_FR.UTF-8 UTF-8\)/\1/' /target/etc/locale.gen
chroot /target locale-gen
## }}}
## Timezone {{{
### Set timezone
printf '%b\n' "Europe/Paris" > /target/etc/timezone
ln -fs /usr/share/zoneinfo/Europe/Paris /target/etc/localtime
chroot /target dpkg-reconfigure --frontend noninteractive tzdata
## }}}
# }}}
# Finish {{{