/usr/lib/fai/load_keymap_consolechars is in fai-nfsroot 5.0.3ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #! /bin/sh
[ "$CONSOLEFONT" ] && setfont -v $CONSOLEFONT
# nothing to do if $KEYMAP is undefined
[ "$KEYMAP" ] || exit
echo -n "Loading keymap(s) $KEYMAP ..."
if [ -x /bin/setupcon ]; then
layout=$(echo $KEYMAP|cut -d - -f 1)
variant=$(echo $KEYMAP|cut -d - -f 3)
sed -e "s#^XKBLAYOUT=.*#XKBLAYOUT=\"$layout\"#" \
-e "s#^XKBVARIANT=.*#XKBVARIANT=\"$variant\"#" \
/etc/default/keyboard > /.console-setup
setupcon -k --force
echo "done."
else
loadkeys -q $KEYMAP && echo "done."
fi
|