Commit 0a420b58 authored by Philip Müller's avatar Philip Müller

[miso_loop_mnt] update checks

parent 5e36d2d2
......@@ -45,6 +45,12 @@ run_hook () {
[[ -z "${img_flags}" ]] && img_flags="defaults"
if [[ "${img_loop}" ]]; then
img_dev=$(find_dev_by_path "${img_loop}")
if [[ -z "${img_dev}" ]]; then
[[ -b "/dev/disk/by-label/${img_label}" ]] &&
img_dev="/dev/disk/by-label/${img_label}"
fi
mount_handler="miso_loop_mount_handler"
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment