X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb.py;h=30abbc65b7759d6ed615c8d154852235207f15bc;hp=c2de631072f7ff901fc8f56289d946517550ec4f;hb=27859253a5c4e08c79670ed2f06e5435afd95ee7;hpb=c326a027d0fa6c8451e4e40bedb73bbc259ec02f diff --git a/grml2usb.py b/grml2usb.py index c2de631..30abbc6 100755 --- a/grml2usb.py +++ b/grml2usb.py @@ -37,7 +37,7 @@ import logging import datetime, time # global variables -PROG_VERSION = "0.0.1" +PROG_VERSION = "0.9.2" skip_mbr = True # hm, can we get rid of that? :) mounted = set() # register mountpoints tmpfiles = set() # register tmpfiles @@ -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"