/lib/partman/active_partition/45xfs/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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/sh
. /lib/partman/lib/base.sh
dev=$2
id=$3
part=$dev/$id
cd $dev
[ -f $part/method -a -f $part/acting_filesystem ] || return 0
filesystem=$(cat $part/acting_filesystem)
case $1 in
mountpoint)
if select_mountpoint $dev $id; then
update_partition $dev $id
fi
;;
options)
select_mountoptions $dev $id
;;
label)
label=''
if [ -f $part/label ]; then
label=$(cat $part/label)
fi
db_set partman-basicfilesystems/choose_label "$label"
db_input critical partman-basicfilesystems/choose_label || true
db_go || exit 1
db_get partman-basicfilesystems/choose_label
if [ "$RET" ]; then
echo "$RET" >$part/label
else
rm -f $part/label
fi
db_reset partman-basicfilesystems/choose_label
;;
esac
exit 0
|