#!/bin/sh

. /usr/share/debconf/confmodule
. /lib/partman/definitions.sh

dev="$1"
id="$2"

# we should only give this option if the device is at the front of the
# disk and has the right partition number.
open_dialog PARTITION_INFO "$id"
read_line part_num range end length type fs path name
close_dialog

start=${range%-*}
if [ "$(($start/1024))" -gt 1 ]; then
	exit 0
fi

db_metaget partman-aboot/text/method description

printf 'aboot\t%s\n' "$RET"
