This file is indexed.

/lib/partman/active_partition/80resize/choices is in ubiquity 18.04.14.

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

. /lib/partman/lib/base.sh

dev=$1
id=$2
cd $dev

open_dialog GET_LABEL_TYPE
read_line label
close_dialog

# Disable on devices where there is no "real" partitioning
if [ "$label" = loop ]; then
	exit 0
fi

if [ -f $id/detected_filesystem ]; then
	fs=$(cat $id/detected_filesystem)
	case "$fs" in
	    linux-swap|fat16|fat32|hfs|hfs+|hfsx)
		;;
	    ext2|ext3|ext4)
		if ! search-path tune2fs || ! search-path resize2fs; then
			exit 0
		fi
		;;
	    ntfs)
		if ! search-path ntfsresize; then
			exit 0
		fi
		;;
	    *)
		exit 0
		;;
	esac
else
	exit 0
fi

open_dialog PARTITION_INFO $id
read_line x1 id size x4 x5 x6 x7 x8
close_dialog

hsize=$(longint2human $size)

db_subst partman-partitioning/text/resize SIZE "$hsize"
db_metaget partman-partitioning/text/resize description
printf "resize\t%s\n" "${RET}"