#!/bin/sh

set -e

. /usr/share/debconf/confmodule

CODE=0

db_get debian-installer/locale || true
LOCALE="$RET"
export LOCALE

apt-install localization-config

localization-config /target preinst || CODE="$?"
if [ "$CODE" = 30 ]; then
	exit 10
else
	exit $CODE
fi
