projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check_boot_flag(): Open device in binary mode
[grml2usb.git]
/
grml2usb
diff --git
a/grml2usb
b/grml2usb
index
eaeba08
..
75fcd3e
100755
(executable)
--- 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")
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, 'r
b
') as image:
data = image.read(520)
bootcode = data[440:]
gpt_data = bootcode[70:80]
data = image.read(520)
bootcode = data[440:]
gpt_data = bootcode[70:80]