testing: Generate some UTF-8 locales
This commit is contained in:
@@ -12,7 +12,7 @@ running_any $STRONGSWANHOSTS && die "Please stop test environment before running
|
||||
check_commands debootstrap mkfs.ext3 partprobe qemu-img qemu-nbd sfdisk
|
||||
|
||||
# package includes/excludes
|
||||
INC=automake,autoconf,libtool,bison,flex,gperf,pkg-config,gettext,less
|
||||
INC=automake,autoconf,libtool,bison,flex,gperf,pkg-config,gettext,less,locales
|
||||
INC=$INC,build-essential,libgmp-dev,libldap2-dev,libcurl4-openssl-dev,ethtool
|
||||
INC=$INC,libxml2-dev,libtspi-dev,libsqlite3-dev,openssh-server,tcpdump,psmisc
|
||||
INC=$INC,openssl,vim,sqlite3,conntrack,gdb,cmake,libltdl-dev,liblog4cxx10-dev
|
||||
@@ -89,6 +89,13 @@ execute "debootstrap --arch=$BASEIMGARCH --include=$INC $BASEIMGSUITE $LOOPDIR $
|
||||
execute "mount -t proc none $LOOPDIR/proc" 0
|
||||
do_on_exit graceful_umount $LOOPDIR/proc
|
||||
|
||||
log_action "Generating locales"
|
||||
cat > $LOOPDIR/etc/locale.gen << EOF
|
||||
de_CH.UTF-8 UTF-8
|
||||
en_US.UTF-8 UTF-8
|
||||
EOF
|
||||
execute_chroot "locale-gen"
|
||||
|
||||
log_action "Downloading signing key for custom apt repo"
|
||||
execute_chroot "wget -q $BASEIMGEXTKEY -O /tmp/key"
|
||||
log_action "Installing signing key for custom apt repo"
|
||||
|
||||
Reference in New Issue
Block a user