Annotation of /trunk/installer/include/prepare_locale.sh
Parent Directory | Revision Log
Revision 1079 -
(hide annotations)
(download)
(as text)
Mon Jun 28 17:36:52 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 471 byte(s)
Mon Jun 28 17:36:52 2010 UTC (14 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 471 byte(s)
-rebuild environment and install correct tzdata
1 | niro | 1066 | #!/bin/bash |
2 | # $Id$ | ||
3 | |||
4 | : ${INSTALL_ROOT="/mnt/magellan"} | ||
5 | |||
6 | # setup locale | ||
7 | install -d ${INSTALL_ROOT}/etc/env.d | ||
8 | echo "LC_ALL=\"${LOCALE}\"" > ${INSTALL_ROOT}/etc/env.d/01locale | ||
9 | |||
10 | # create locale | ||
11 | sed -i "s:^#${LOCALE}:${LOCALE}:g" ${INSTALL_ROOT}/etc/locale.gen | ||
12 | niro | 1067 | chroot ${INSTALL_ROOT} locale-gen |
13 | niro | 1079 | chroot ${INSTALL_ROOT} env-rebuild |
14 | |||
15 | # copy the correct tzdata | ||
16 | install -m0644 ${INSTALL_ROOT}/usr/share/zoneinfo/${TIMEZONE_REGION}/${TIMEZONE_LOCATION} ${INSTALL_ROOT}/etc/localtime |
Properties
Name | Value |
---|---|
svn:keywords | Id |