partitions_mount: fix finding the partition
Needs some more testing, but this should fix #2113 (closed) and #1960 (closed).
partitions_mount: fix finding the partition
Instead of trying both "${dev}1" and "${dev}p1" as partition paths, only
try one of them depending on if "${dev}" ends in a number or not. This
fixes getting a wrong /dev/loop11 partition by accident if there are
many loop devices, instead of only looking for the correct path
/dev/loop1p1. People reported this happening with snaps on ubuntu.
Edited by Administrator