#!/bin/bash

printf "Essential hook script for mmdebstrap\n\n"
printf "Configure locales\n"
chroot $1 ln --force --symbolic /usr/share/zoneinfo/Europe/Paris /etc/localtime
echo "locales locales/default_environment_locale select en_US.UTF-8" | chroot $1 debconf-set-selections
echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | chroot $1 debconf-set-selections
chroot $1 dpkg --configure -a

exit 0
