Discard set bios_grub flag for boot partition.

Set force flag for grub2-install.
master3.3
Mike Hiretsky 13 years ago
parent 28dd72bb0e
commit 0592222a17

@ -1515,7 +1515,7 @@ class cl_install(color_print, SignalInterrupt):
return (False,False) return (False,False)
def setBiosGrubForBootPartition(self): 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","/"): for bootPath in ("/boot","/"):
# get grub disk by mount point # get grub disk by mount point
bootPart = self.varSelect( bootPart = self.varSelect(
@ -1538,16 +1538,16 @@ class cl_install(color_print, SignalInterrupt):
def installGrub2Bootloader(self,target): def installGrub2Bootloader(self,target):
"""Install grub2 boot loader""" """Install grub2 boot loader"""
cmdGrubInstall = self.clVars.Get('os_grub2_path') cmdGrubInstall = self.clVars.Get('os_grub2_path')
if not self.setBiosGrubForBootPartition(): #if not self.setBiosGrubForBootPartition():
raise DistributiveError( # raise DistributiveError(
_("Cann't set bios_grub flag for boot partition")) # _("Cann't set bios_grub flag for boot partition"))
if not cmdGrubInstall: if not cmdGrubInstall:
raise DistributiveError(_("Cann't install bootloader")) raise DistributiveError(_("Cann't install bootloader"))
mbrDisk = self.clVars.Get('os_install_mbr') mbrDisk = self.clVars.Get('os_install_mbr')
grubProcess = process(cmdGrubInstall, grubProcess = process(cmdGrubInstall,
"--boot-directory=%s"%target.getBootDirectory(), "--boot-directory=%s"%target.getBootDirectory(),
"/dev/%s"%mbrDisk) "/dev/%s"%mbrDisk, "-f")
if grubProcess.failed(): if grubProcess.failed():
raise DistributiveError(_("Cann't install bootloader")) raise DistributiveError(_("Cann't install bootloader"))

Loading…
Cancel
Save