
dm_name=$(luks_dm_name_for_device "$opt_device")
if [ -z "$dm_name" ]; then
    display_errorbox "Cannot find the volume name for $opt_device (not a LUKS partition?)"
    exit 1
fi

partition_dev=$(luks_get_underlying_device "$dm_name")
if [ -z "$partition_dev" ]; then
    display_errorbox "Cannot find the underlying partition of volume $dm_name (not a LUKS partition?)"
    exit 1
fi

luks_change_password "$partition_dev" ""
