/lib/partman/free_space/70autopartition/do_option 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 | #!/bin/sh
set -e
. /lib/partman/lib/base.sh
dev=$2
freeid=$3
cd $dev
open_dialog PARTITION_INFO $freeid
read_line x1 freeid freesize freetype x2 x3 x4
close_dialog
[ "$freeid" ] || exit 1
autopartition $dev $freeid
exit 0
|