Catch parted returning None as the searched partition
authorEvgeni Golov <evgeni@grml.org>
Mon, 28 Sep 2015 15:37:06 +0000 (17:37 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 28 Sep 2015 16:08:02 +0000 (18:08 +0200)
commit745f09771c1a7cfd9607d3300a55ee8ddbd59fac
tree2934821e06c7ce3bc5d339d8d1e6d84022213654
parent66dafbb18838e6e2547a1257dcda82ab52dd64af
Catch parted returning None as the searched partition

Certain USB devices aren't handled correctly by
python-parted. As soon as the USB devices are
filled/rewritten with zeros (dd if=/dev/zero of=/dev/sdX)
they are recognized properly. The underlying issue
couldn't be identified yet, but since we know what
we get let's just fall back to the old boot device
detection and print an according warning message.

Thanks: to mika and Haudegen for debugging
Closes: #766964
grml2usb