This file is indexed.

/usr/share/initramfs-tools/hooks/console_setup is in keyboard-configuration 1.70ubuntu8.

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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#! /bin/sh -e

PREREQ="kbd|console_tools"

prereqs () {
	echo "$PREREQ"
}

case $1 in
prereqs)
	prereqs
	exit 0
	;;
esac

. /usr/share/initramfs-tools/hook-functions
[ -r /etc/default/keyboard ] || exit 0
[ -r /etc/default/console-setup ] || exit 0
. /etc/default/console-setup # also sources /etc/default/keyboard

# Copy console-setup configuration
mkdir -p "$DESTDIR/etc/default"
cp -p /etc/default/keyboard "$DESTDIR/etc/default"
cp -p /etc/default/console-setup "$DESTDIR/etc/default"

# Assume setupcon --save has been run
if [ -f "$FONT" ]; then
	FONT="/etc/console-setup/${FONT##*/}"
	FONT="${FONT%.gz}"
else
	FONT="/etc/console-setup/$CODESET-$FONTFACE$FONTSIZE.psf"
fi
if [ -f "$FONT" ]; then
	mkdir -p "$DESTDIR${FONT%/*}"
	cp -p "$FONT" "$DESTDIR$FONT"
fi
if [ -f "$ACM" ]; then
	ACM="/etc/console-setup/${ACM##*/}"
	ACM="${ACM%.gz}"
else
	ACM="/etc/console-setup/$CHARMAP.acm"
fi
if [ -f "$ACM" ]; then
	mkdir -p "$DESTDIR${ACM%/*}"
	cp -p "$ACM" "$DESTDIR$ACM"
fi
if [ -f /etc/console-setup/cached.kmap.gz ]; then
	mkdir -p "$DESTDIR/etc/console-setup"
	cp -p /etc/console-setup/cached.kmap.gz \
		"$DESTDIR/etc/console-setup/cached.kmap.gz"
fi

exit 0