#!/bin/sh -efu
### This file is covered by the GNU General Public License
### version 2 or later.
###
### Copyright (C) 2018  ALT Linux Team
### Author: Leonid Krivoshein <klark@altlinux.org>

if [ -z "${__included_rescue_launcher_disk-}" ]; then
__included_rescue_launcher_disk=1

# Local Disk Partition
autorun_probe_disk_method() {
	local opts="ro,noatime,nodiratime,nosuid"
	local label="${AUTORUN_LABEL:-alt-autorun}"

	autorun_debug "Probing DISK..."
	if [ -n "$AUTORUN_UUID" ]; then
		if autorun_mount -o $opts -U "$AUTORUN_UUID"; then
			return 0
		fi
	fi
	if autorun_mount -o $opts -L "$label"; then
		return 0
	fi

	return 1
}

fi #__included_rescue_launcher_disk
