Discard set bios_grub flag for boot partition.

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

@ -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"))

Loading…
Cancel
Save