X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=66ff2ee4cbc1569bc96b7e5565a0b180af46d774;hp=e2cffe8b7a5b4d3a64ea6c4a8bc95bb5b5272341;hb=26cf6332b95355d58220e8541cf8de896ce60c67;hpb=0ab2a7261eef1435cf5b0ce1180e826f4c663414 diff --git a/grml2usb b/grml2usb index e2cffe8..66ff2ee 100755 --- a/grml2usb +++ b/grml2usb @@ -1533,7 +1533,7 @@ def install_grml(mountpoint, device): def remove_mountpoint(mountpoint): - """remove a registred mountpoint + """remove a registered mountpoint """ try: @@ -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