@@ -7,6 +7,14 | |||||
7 |
|
7 | |||
8 | # Install and setup timezone |
|
8 | # Install and setup timezone | |
9 | echo "${TIMEZONE}" > "${ETC_DIR}/timezone" |
|
9 | echo "${TIMEZONE}" > "${ETC_DIR}/timezone" | |
|
10 | if [ -f "${ETC_DIR}/localtime" ]; then | |||
|
11 | # 1. If 11-apt.sh upgrades the package 'tzdata', '/etc/localtime' was created | |||
|
12 | # because 'dpkg-reconfigure -f noninteractive tzdata' was executed by apt-get. | |||
|
13 | # 2. If '/etc/localtime' exists, our execution of 'dpkg-reconfigure -f noninteractive tzdata' | |||
|
14 | # will ignore the our timezone set in '/etc/timezone'. | |||
|
15 | # 3. Removing /etc/localtime will solve this. | |||
|
16 | rm -f "${ETC_DIR}/localtime" | |||
|
17 | fi | |||
10 | chroot_exec dpkg-reconfigure -f noninteractive tzdata |
|
18 | chroot_exec dpkg-reconfigure -f noninteractive tzdata | |
11 |
|
19 | |||
12 | # Install and setup default locale and keyboard configuration |
|
20 | # Install and setup default locale and keyboard configuration |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant