blob: cbc119b3659c8bb1a4ce1b005b1f964a3df32d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/sh
# helper script called from within ansible-test-integration.py to
set -eu
# workaround for various integration tests trying to do this and failing
# due to missing root permission
echo 'apt-mark changes'
/usr/bin/apt-mark manual debconf-utils
/usr/bin/apt-mark manual iptables
/usr/bin/apt-mark manual git
# Set default locale to en_US.UTF-8 to remove lots of warnings when
# running the tests
echo 'debconf selection changes'
# These values get overwritten by what is in the config files when
# running dpkg-reconfigure, see https://bugs.debian.org/684134
cat << EOF | debconf-set-selections
locales locales/default_environment_locale select en_US.UTF-8
locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8
EOF
# So set these values manually in the config files.
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'LANG=en_US.UTF-8' > /etc/default/locale
echo 'dpkg-reconfigure changes'
dpkg-reconfigure --frontend=noninteractive locales
|