/bin/partman-commit 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85  | #!/bin/sh
set -e
. /lib/partman/lib/base.sh
###########################################################
# Compute some constants in order to make things faster.
###########################################################
# Detect if Debconf can escape strings
# non-empty means we can escape
can_escape=''
if type debconf-escape >/dev/null 2>&1; then
	db_capb backup align
	for cap in $RET; do
		case $cap in
			escape)	can_escape=yes ;;
		esac
	done
fi
export can_escape
# The decimal separator (dot or comma)
#db_metaget partman/text/deci description
#deci="$RET"
# The comma has special meaning for debconf.  Let's force dot until we
# start using escaped strings.
deci='.'
export deci
# work around bug #243373
if [ "$TERM" = xterm ] || [ "$TERM" = bterm ]; then
	debconf_select_lead="$NBSP"
else
	debconf_select_lead="> "
fi
export debconf_select_lead
###########################################################
db_capb backup align
initcount=`ls /lib/partman/init.d/* | wc -l`
db_progress START 0 $initcount partman/progress/init/title
for s in /lib/partman/init.d/*; do
	if [ -x $s ]; then
		base=$(basename $s | sed 's/[0-9]*//')
		# Not every init script has, or needs, its own progress
		# template. Add them to slow init scripts only.
		if ! db_progress INFO partman/progress/init/$base; then
			db_progress INFO partman/progress/init/fallback
		fi
		if ! $s; then
			db_progress STOP
			exit 10
		fi
	fi
	db_progress STEP 1
done
db_progress STOP
# display.d intentionally omitted.
if [ -z "$PARTMAN_ALREADY_CHECKED" ]; then
	for s in /lib/partman/check.d/*; do
		if [ -x $s ]; then
			$s
		fi
	done
fi
for s in /lib/partman/commit.d/*; do
	if [ -x $s ]; then
		$s
	fi
done
for s in /lib/partman/finish.d/*; do
	if [ -x $s ]; then
		$s
	fi
done
exit 0
 |