X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;fp=grml2usb;h=75fcd3ee838b3c01e7de9b6a361f4e98f4c48565;hp=eaeba087ac20f1b6ef911ae3a8650385c099108b;hb=c2e742a6dc8a594f71fb7cf0b3233f31f48935de;hpb=5b2ffe433479368d711a63d985b926966940cad5 diff --git a/grml2usb b/grml2usb index eaeba08..75fcd3e 100755 --- a/grml2usb +++ b/grml2usb @@ -389,7 +389,7 @@ def check_boot_flag(device): except ImportError as e: logging.debug("could not import parted, falling back to old bootflag detection") - with open(boot_dev, 'r') as image: + with open(boot_dev, 'rb') as image: data = image.read(520) bootcode = data[440:] gpt_data = bootcode[70:80]