livecd-rootfs/live-build/ubuntu-cpc/hooks/020-pkg-configure.chroot
Michael Vogt 8657aaf80b Import patches-unapplied version 2.297 to ubuntu/vivid-proposed
Imported using git-ubuntu import.

Changelog parent: 1aff015ce1318f1ae128d9b21d50fdb86b3b7bc8

New changelog entries:
  * fix device.tar.gz generation for snappy
  * lp:~ubuntu-on-ec2/livecd-rootfs/cpc2:
    - build cloud based images using livecd-rootfs
2015-04-09 14:43:25 +00:00

29 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Configure certain packages
## console-setup
# Select the fontface
printf "%s\t%s\t%s\t%s\n" \
console-setup console-setup/console-setup/fontface47 string "Fixed" debconf-set-selections ||
{ echo "FAILED to setup console fontface"; exit 1; }
# Select the code page for font
printf "%s\t%s\t%s\t%s\n" \
console-setup console-setup/codesetcode string "Uni2" | debconf-set-selections ||
{ echo "FAILED to setup console code page to Uni2"; exit 1; }
# Set Language string for codepage 47
printf "%s\t%s\t%s\t%s\n" \
console-setup console-setup/codeset47 string ". Combined - Latin; Slavic Cyrillic; Greek" | debconf-set-selections ||
{ echo "FAILED to setup codeset47 to proper string"; exti 1; }
# Replace the console font and typ ein /etc/default/console-setup
sed -i -e 's,^CODESET.*,CODESET="Uni2",g' \
-e 's,^FONTFACE.*,FONTFACE="Fixed",g' \
/etc/default/console-setup
# Configure the console-setup
dpkg-reconfigure --frontend=noninteractive console-setup ||
{ echo "FAILED to recofigure console-setup"; exit 1; }