From b8fff539b94d9cd1f8707c9ba8cadde57c6ee11e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 3 Apr 2019 23:13:29 +0200 Subject: [PATCH] Chroot: Manage timezone --- debian/chroot.install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/chroot.install b/debian/chroot.install index 66808cc..e30c35f 100755 --- a/debian/chroot.install +++ b/debian/chroot.install @@ -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 {{{