Fix for grub2.0

master3.3
Mike Hiretsky 12 years ago
parent 21c5d3ce4d
commit e192542f52

@ -490,12 +490,12 @@ class VariableOsGrub2Path(Variable):
"""
def get(self):
# find grub2-install
grubInstall = getProgPath('/sbin/grub2-install')
grubInstall = getProgPath('/usr/sbin/grub2-install')
if grubInstall:
return grubInstall
# find grub-install and check, that this is grub2-install (ver 1.99)
grubInstall = self.getProgPath('/sbin/grub-install')
if grubInstall and filter(lambda x:"1.99" in x,
grubInstall = getProgPath('/usr/sbin/grub-install')
if grubInstall and filter(lambda x:"1.99" in x or "2.00" in x,
process(grubInstall,'-v')):
return grubInstall
return ""

Loading…
Cancel
Save