various fixes and improvements
[automated-distro-installer] / fai / config / hooks / instsoft.DEBIAN
1 #! /bin/bash
2
3 set -x
4 # if package locales will be installed, then install it early, before
5 # other packages
6 if [ $FAI_ACTION != "install" -a $FAI_ACTION != "dirinstall" ]; then
7 exit 0
8 fi
9
10 fcopy -Bi /etc/apt/apt.conf.d/force_confdef
11 ainsl -a /etc/ucf.conf "^conf_force_conffold=YES"
12
13 # ian: on flidas this gives an error: update-locale: Error: invalid locale settings: LANG=en_US.UTF-8
14 # # in case the locales are already included inside the base file (Ubuntu)
15 # if [ -f $target/usr/sbin/locale-gen ]; then
16 # $ROOTCMD dpkg-reconfigure -fnoninteractive locales
17 # exit
18 # fi
19
20 # if we want to install locales, install them now
21 install_packages -l 2>/dev/null | egrep -q ' locales|locales '
22 if [ $? -eq 0 ]; then
23 if [ X$verbose = X1 ]; then
24 $ROOTCMD apt-get -y install locales
25 else
26 $ROOTCMD apt-get -y install locales > /dev/null
27 fi
28 fi