|
|
|
@ -1725,8 +1725,8 @@ class VariableOsInstallMbr(LocationHelper,Variable):
|
|
|
|
|
raise VariableError(_("You need a disk with a dos "
|
|
|
|
|
"table for Flash install"))
|
|
|
|
|
if tableOnBootDisk == "dos" and useBtrfs:
|
|
|
|
|
raise VariableError(_("You need a disk with a gpt "
|
|
|
|
|
"table for install on btrfs"))
|
|
|
|
|
raise VariableError(_("You need a disk with a GPT table for "
|
|
|
|
|
"install on a btrfs partition"))
|
|
|
|
|
if rootType in ("usb-hdd","hdd") and tableOnBootDisk == "gpt":
|
|
|
|
|
efisize = self.Select('os_disk_size',
|
|
|
|
|
where=['os_disk_id','os_disk_parent'],
|
|
|
|
@ -1737,15 +1737,15 @@ class VariableOsInstallMbr(LocationHelper,Variable):
|
|
|
|
|
minsize = "%dMb" % (int(bios_grub_size) / Sizes.M)
|
|
|
|
|
if not efisize:
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Boot device must have BIOS Boot "
|
|
|
|
|
"partition ({minsize})").format(minsize=minsize))
|
|
|
|
|
_("Your boot device must have a BIOS Boot partition "
|
|
|
|
|
"({minsize})").format(minsize=minsize))
|
|
|
|
|
# проверка размера EF02 при установке на btrfs
|
|
|
|
|
elif useBtrfs:
|
|
|
|
|
if (efisize.isdigit() and bios_grub_size.isdigit() and
|
|
|
|
|
int(efisize) < int(bios_grub_size)):
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Boot device must have BIOS Boot partition "
|
|
|
|
|
"({minsize})").format(minsize=minsize))
|
|
|
|
|
_("Your boot device must have a BIOS Boot "
|
|
|
|
|
"partition ({minsize})").format(minsize=minsize))
|
|
|
|
|
if value:
|
|
|
|
|
if self.Get('os_grub2_path'):
|
|
|
|
|
self.checkForGrub2()
|
|
|
|
|