X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=e1d7f5c70947b82d330a683c87ce5f64e9ffb251;hp=e2cffe8b7a5b4d3a64ea6c4a8bc95bb5b5272341;hb=3fb00de77fae03538fc03c78ea31298a280aac37;hpb=87143a6e2e14a067d82dc1e2e8ba2cc90cee1bfe diff --git a/grml2usb b/grml2usb index e2cffe8..e1d7f5c 100755 --- a/grml2usb +++ b/grml2usb @@ -1556,7 +1556,7 @@ def handle_mbr(device): return 0 mbr_device, partition_number = get_device_from_partition(device) - if not partition_number: + if partition_number is None: logging.warn("Could not detect partition number, not activating partition") # if we get e.g. /dev/loop1 as device we don't want to put the MBR