|
|
|
@ -241,7 +241,7 @@ class Install:
|
|
|
|
|
"--target=x86_64-efi",
|
|
|
|
|
"--efi-directory=%s"%
|
|
|
|
|
target.getEfiDirectory(),
|
|
|
|
|
"-f"]
|
|
|
|
|
"--force"]
|
|
|
|
|
# в случае установки на usb-hdd EFI загрузчик не прописывается
|
|
|
|
|
# в efivars
|
|
|
|
|
if self.clVars.Get('os_install_root_type') == 'usb-hdd':
|
|
|
|
@ -281,8 +281,8 @@ class Install:
|
|
|
|
|
# если GRUB2 версии 2.00 и выше, обычная установка требует
|
|
|
|
|
# параметра --target=i386-pc, иначе GRUB2 может попытаться
|
|
|
|
|
# прописать себя как UEFI
|
|
|
|
|
if filter(lambda x:"2.00" in x,
|
|
|
|
|
process(cmdGrubInstall,'-v')):
|
|
|
|
|
if filter(lambda x:"2." in x,
|
|
|
|
|
process(cmdGrubInstall,'--version')):
|
|
|
|
|
platform = ["--target=i386-pc"]
|
|
|
|
|
else:
|
|
|
|
|
platform = []
|
|
|
|
@ -291,7 +291,7 @@ class Install:
|
|
|
|
|
grubProcess = process(cmdGrubInstall,
|
|
|
|
|
"--boot-directory=%s"%pathJoin(prefixBoot,
|
|
|
|
|
target.getBootDirectory()),
|
|
|
|
|
mbrDisk, "-f", *platform,
|
|
|
|
|
mbrDisk, "--force", *platform,
|
|
|
|
|
stderr=STDOUT,envdict=os.environ)
|
|
|
|
|
if grubProcess.failed():
|
|
|
|
|
raise DistributiveError(_("Failed to install the bootloader"))
|
|
|
|
|