FONT="x/y/z" is not applied due to setupcon script bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
console-setup (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
apt-cache policy console-setup
console-setup:
Installed: 1.178ubuntu1
Candidate: 1.178ubuntu1
Version table:
*** 1.178ubuntu1 500
500 http://
500 http://
100 /var/lib/
On 18.04 I wanted to set the TTY font to use a Powerline font. Despite being able to set the font manually it wasn't being set at boot-time.
/etc/default/
FONT="/
"setupcon -v -f" reported an error:
putfont: KDFONTOP: Invalid argument
due to passing the font filename twice:
executing setfont -C /dev/tty1 /usr/local/
The problem is in /bin/setupcon where the collecting variable FONTFILES has the font added twice, once at the top of the for loop
FONTFILES=
and again at the bottom
FONTFILES=
Removing the first assignment fixes it.
FONTFILES=''
echo "DEBUG: FONT=$FONT"
if [ "$FONT" ]; then
for f in $FONT; do
echo "DEBUG: for loop"
if [ -z "$RES" ]; then
fi
done
fi
FONTFILES=`echo $FONTFILES` # remove extra spaces
tags: | added: bionic patch |
Status changed to 'Confirmed' because the bug affects multiple users.