/lib/partman/choose_partition/20auto/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 21 | #!/bin/sh
. /lib/partman/lib/base.sh
code=99 # signals a retry
while [ $code = 99 ]; do
ask_user /lib/partman/automatically_partition
code=$?
if [ $code -ge 128 ] && [ $code -lt 192 ]; then
exit $code # killed by signal
elif [ $code -ge 100 ]; then
# 255: backup from subsidiary question; break and return to
# choose_partition menu
# 100-127, 192-254: attempt to skip the manual partitioner
# (from display.d), which isn't appropriate if the manual
# partitioner has already been displayed, so treat this
# exactly like backup
exit 0
fi
done
exit $code
|