projects
/
grml2usb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3b84e56
)
Fix "global name 'parted' is not defined" error in grml2usb
author
Evgeni Golov
<evgeni@grml.org>
Sat, 11 Oct 2014 18:01:27 +0000
(20:01 +0200)
committer
Evgeni Golov
<evgeni@grml.org>
Sat, 11 Oct 2014 18:01:27 +0000
(20:01 +0200)
Thanks to Charles Hewson for reporting the issue.
Blame myself for introducing this issue after Mika got it right in
the first version of his patch.
grml2usb
patch
|
blob
|
history
diff --git
a/grml2usb
b/grml2usb
index
9321b98
..
5ac0f5c
100755
(executable)
--- a/
grml2usb
+++ b/
grml2usb
@@
-352,6
+352,7
@@
def check_boot_flag(device):
boot_dev, x = get_device_from_partition(device)
try:
+ import parted
part = get_partition_for_path(device)
if part.getFlag(parted.PARTITION_BOOT):
logging.debug("bootflag is enabled on %s" % device)