projects
/
grml2usb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extend docs, add support for lilo on i386 vs. amd64
[grml2usb.git]
/
grml2usb.py
diff --git
a/grml2usb.py
b/grml2usb.py
index
c2de631
..
b14bbd0
100755
(executable)
--- a/
grml2usb.py
+++ b/
grml2usb.py
@@
-404,7
+404,11
@@
def install_mbr(device):
if options.lilo:
lilo = options.lilo
else:
if options.lilo:
lilo = options.lilo
else:
- lilo = '/usr/share/grml2usb/lilo/lilo.static'
+ from platform import architecture
+ if architecture()[0] == '64bit':
+ lilo = '/usr/share/grml2usb/lilo/lilo.static.amd64'
+ else:
+ lilo = '/usr/share/grml2usb/lilo/lilo.static.i386'
if not is_exe(lilo):
raise Exception, "lilo executable can not be execute"
if not is_exe(lilo):
raise Exception, "lilo executable can not be execute"