# Sub-tests that require a mounted partition.
. /usr/share/os-prober/common.sh
umount "$tmpmnt/boot" 2>/dev/null || true
if ! umount "$tmpmnt"; then
warn "failed to umount $tmpmnt"
for dm_device in $dm_devices; do
if [ -e "$dm_device" ]; then
debug "remove device mapper device $dm_device"
dmsetup remove $dm_device
types="$(fs_type "$partition")"
if [ "$types" = NOT-DETECTED ]; then
debug "$1 type not recognised; skipping"
elif [ "$types" = swap ]; then
debug "$1 is a swap partition; skipping"
elif [ "$types" = crypto_LUKS ]; then
debug "$1 is a LUKS partition; skipping"
elif [ "$types" = ntfs ]; then
if type ntfs-3g >/dev/null 2>&1; then
elif [ -z "$types" ]; then
if is_dos_extended_partition "$partition"; then
debug "$1 looks like an extended dos partition; skipping"
if type cryptsetup >/dev/null 2>&1 && \