#!/bin/bash # $Id$ : ${INSTALL_ROOT="/mnt/magellan"} # setup locale install -d ${INSTALL_ROOT}/etc/env.d echo "LC_ALL=\"${LOCALE}\"" > ${INSTALL_ROOT}/etc/env.d/01locale # create locale sed -i "s:^#${LOCALE}:${LOCALE}:g" ${INSTALL_ROOT}/etc/locale.gen chroot ${INSTALL_ROOT} locale-gen chroot ${INSTALL_ROOT} env-rebuild # copy the correct tzdata install -m0644 ${INSTALL_ROOT}/usr/share/zoneinfo/${TIMEZONE_REGION}/${TIMEZONE_LOCATION} ${INSTALL_ROOT}/etc/localtime