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. |
||
---|---|---|
.. | ||
aportgen | ||
build | ||
chroot | ||
config | ||
data | ||
export | ||
flasher | ||
helpers | ||
install | ||
netboot | ||
parse | ||
qemu | ||
sideload | ||
__init__.py |