#!/bin/sh

. /usr/share/debconf/confmodule
. /lib/partman/lib/base.sh
. /lib/partman/lib/auto-shared.sh

# Skip if no disks detected and don't run on S/390
if [ -z "$(get_auto_disks)" ] || \
   [ "$(udpkg --print-architecture)" = s390 ] || \
   [ "$(udpkg --print-architecture)" = s390x ]; then
	exit 0
fi

db_metaget partman-auto/text/automatically_partition description
printf "auto\t$RET"
