This file is indexed.

/lib/partman/active_partition/49keyhash/choices is in ubiquity 2.18.7.

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
#!/bin/sh

. /lib/partman/lib/crypto-base.sh

dev=$1
id=$2
part=$dev/$id

[ -f $part/method ] || exit 0
[ -f $part/crypto_type ] || exit 0
[ -f $part/cipher ] || exit 0
[ -f $part/keytype ] || exit 0

method=$(cat $part/method)
type=$(cat $part/crypto_type)
cipher=$(cat $part/cipher)
keytype=$(cat $part/keytype)

if [ $method = crypto ]; then
	# Hashing only makes sense for passphrases
	if [ "$keytype" = passphrase ]; then
		crypto_dochoice $part $type $cipher keyhash
	fi
fi