Reconfigure console fonts to not use /tmp, fixes #1

This commit is contained in:
Disassembler 2017-09-20 10:10:04 +02:00
parent 1b21b1ec6c
commit 0a232bcc22

View File

@ -1,6 +1,7 @@
#!/bin/bash
SOURCE_DIR=$(realpath $(dirname "${0}"))
export DEBIAN_FRONTEND="noninteractive"
# Uninstall unnecessary packages
apt-get -y purge bsdmainutils dictionaries-common emacsen-common iamerican ibritish ienglish-common installation-report ispell laptop-detect nano os-prober task-english tasksel tasksel-data wamerican
@ -47,6 +48,7 @@ cp ${SOURCE_DIR}/basic/etc/default/grub /etc/default/grub
# Set legal banner with URL + latin2 character set
cp ${SOURCE_DIR}/basic/etc/default/console-setup /etc/default/console-setup
cp ${SOURCE_DIR}/basic/etc/issue /etc/issue
dpkg-reconfigure console-setup
# Forbid login on tty1, disable tty2-6
cp ${SOURCE_DIR}/basic/lib/systemd/system/getty@.service /lib/systemd/system/getty@.service
@ -62,7 +64,6 @@ update-grub
#####
# Preconfigure
export DEBIAN_FRONTEND="noninteractive"
echo postfix postfix/main_mailer_type string "Satellite system" | debconf-set-selections
echo postfix postfix/mailname string "$(hostname -f)" | debconf-set-selections
echo postfix postfix/relayhost string "" | debconf-set-selections