#!/bin/bash set -e source CONFIG source functions ensure BASE NAME echo "Setting keymap ..." echo "KEYMAP=es" > ./${BASE}/${NAME}/etc/vconsole.conf cat > ./${BASE}/${NAME}/script.sh << _EOF export DEBIAN_FRONTEND=noninteractive echo keyboard-configuration console-setup/ask_detect boolean false > /tmp/console.preseed echo console-setup console-setup/store_defaults_in_debconf_db boolean true >> /tmp/console.preseed echo console-setup console-setup/charmap47 select UTF-8 >> /tmp/console.preseed echo console-setup console-setup/fontface47 select Fixed >> /tmp/console.preseed echo keyboard-configuration console-setup/detected note >> /tmp/console.preseed echo console-setup console-setup/codeset47 select Guess optimal character set >> /tmp/console.preseed echo console-setup console-setup/fontsize-fb47 select 8x16 >> /tmp/console.preseed echo console-setup console-setup/codesetcode string guess >> /tmp/console.preseed echo keyboard-configuration console-setup/detect detect-keyboard >> /tmp/console.preseed echo console-setup console-setup/fontsize-text47 select 8x16 >> /tmp/console.preseed echo console-setup console-setup/fontsize string 8x16 >> /tmp/console.preseed debconf-set-selections /tmp/console.preseed dpkg-reconfigure -u -f noninteractive console-setup rm -f /tmp/console.preseed _EOF if [ "x${VERBOSE}" = "x0" ]; then exec &> /dev/null fi ltsp-chroot --arch ${ARCH} --base ${BASE} -pcma ${NAME} bash /script.sh if [ "$?" != "0" ]; then exit 1 fi rm -f ./${BASE}/${NAME}/script.sh exit 0