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. |
||
---|---|---|
.. | ||
__init__.py | ||
_install.py | ||
blockdevice.py | ||
format.py | ||
losetup.py | ||
partition.py | ||
recovery.py | ||
ui.py |