X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb.py;h=b14bbd0aa7a96c0e2134d238358fbdfc8c34c419;hp=c2de631072f7ff901fc8f56289d946517550ec4f;hb=3fe01e13ced8b89650a02e9422b405dac7566e0c;hpb=c326a027d0fa6c8451e4e40bedb73bbc259ec02f diff --git a/grml2usb.py b/grml2usb.py index c2de631..b14bbd0 100755 --- a/grml2usb.py +++ b/grml2usb.py @@ -404,7 +404,11 @@ def install_mbr(device): 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"