source: make-mini-image/config/30-locales @ 2905

Last change on this file since 2905 was 1827, checked in by mabarracus, 4 years ago

Final config & renamed scripts

  • Property svn:executable set to *
File size: 584 bytes
Line 
1#!/bin/bash
2set -e
3
4source CONFIG
5source functions
6
7ensure BASE NAME
8
9echo "Setting locale ..."
10
11cat > ./${BASE}/${NAME}/script.sh << _EOF
12
13export DEBIAN_FRONTEND=noninteractive
14
15echo locales locales/default_environment_locale select  es_ES.UTF-8     > /tmp/locales.preseed
16
17debconf-set-selections /tmp/locales.preseed
18
19dpkg-reconfigure -u -f noninteractive locales
20
21_EOF
22
23if [ "x${VERBOSE}" = "x0" ]; then
24    exec &> /dev/null
25fi
26
27ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} bash /script.sh
28
29if [ "$?" != "0" ]; then
30    exit 1
31fi
32
33rm -f ./${BASE}/${NAME}/script.sh
34
35exit 0
Note: See TracBrowser for help on using the repository browser.