forked from mirrored-repos/manjaro-tools
[miso_loop_mnt] update checks
This commit is contained in:
parent
5e36d2d206
commit
0a420b5818
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue