From 0592222a174e574b8634ff49bc8c388a47c46f72 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Thu, 9 Jun 2011 12:27:13 +0400 Subject: [PATCH] Discard set bios_grub flag for boot partition. Set force flag for grub2-install. --- pym/cl_install.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pym/cl_install.py b/pym/cl_install.py index 58dea24..4d065e9 100644 --- a/pym/cl_install.py +++ b/pym/cl_install.py @@ -1515,7 +1515,7 @@ class cl_install(color_print, SignalInterrupt): return (False,False) def setBiosGrubForBootPartition(self): - """Set bios_grub flag for boot partition in gpt""" + """Set bios_grub flag for boot partition in gpt (WRONG)""" for bootPath in ("/boot","/"): # get grub disk by mount point bootPart = self.varSelect( @@ -1538,16 +1538,16 @@ class cl_install(color_print, SignalInterrupt): def installGrub2Bootloader(self,target): """Install grub2 boot loader""" cmdGrubInstall = self.clVars.Get('os_grub2_path') - if not self.setBiosGrubForBootPartition(): - raise DistributiveError( - _("Cann't set bios_grub flag for boot partition")) + #if not self.setBiosGrubForBootPartition(): + # raise DistributiveError( + # _("Cann't set bios_grub flag for boot partition")) if not cmdGrubInstall: raise DistributiveError(_("Cann't install bootloader")) mbrDisk = self.clVars.Get('os_install_mbr') grubProcess = process(cmdGrubInstall, "--boot-directory=%s"%target.getBootDirectory(), - "/dev/%s"%mbrDisk) + "/dev/%s"%mbrDisk, "-f") if grubProcess.failed(): raise DistributiveError(_("Cann't install bootloader"))