source: make-mini-image/config/27-keymap @ 1827

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

Final config & renamed scripts

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2set -e
3
4source CONFIG
5source functions
6
7ensure BASE NAME
8
9echo "Setting keymap ..."
10
11echo "KEYMAP=es" > ./${BASE}/${NAME}/etc/vconsole.conf
12
13cat > ./${BASE}/${NAME}/script.sh << _EOF
14
15export DEBIAN_FRONTEND=noninteractive
16
17echo keyboard-configuration     console-setup/ask_detect        boolean false > /tmp/console.preseed
18echo console-setup      console-setup/store_defaults_in_debconf_db      boolean true >> /tmp/console.preseed
19echo console-setup      console-setup/charmap47 select  UTF-8   >> /tmp/console.preseed
20echo console-setup      console-setup/fontface47        select  Fixed   >> /tmp/console.preseed
21echo keyboard-configuration     console-setup/detected  note    >> /tmp/console.preseed
22echo console-setup      console-setup/codeset47 select  Guess optimal character set     >> /tmp/console.preseed
23echo console-setup      console-setup/fontsize-fb47     select  8x16    >> /tmp/console.preseed
24echo console-setup      console-setup/codesetcode       string  guess   >> /tmp/console.preseed
25echo keyboard-configuration     console-setup/detect    detect-keyboard         >> /tmp/console.preseed
26echo console-setup      console-setup/fontsize-text47   select  8x16    >> /tmp/console.preseed
27echo console-setup      console-setup/fontsize  string  8x16    >> /tmp/console.preseed
28
29debconf-set-selections /tmp/console.preseed
30dpkg-reconfigure -u -f noninteractive console-setup
31rm -f /tmp/console.preseed
32_EOF
33
34if [ "x${VERBOSE}" = "x0" ]; then
35    exec &> /dev/null
36fi
37
38ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} bash /script.sh
39
40if [ "$?" != "0" ]; then
41    exit 1
42fi
43
44rm -f ./${BASE}/${NAME}/script.sh
45
46exit 0
Note: See TracBrowser for help on using the repository browser.