|
|
|
@ -509,31 +509,33 @@ class VariableClAutopartitionScheme(AutopartitionHelper,Variable,AutoPartition):
|
|
|
|
|
("data",_("/var/calculate partition")),
|
|
|
|
|
("home",_("Mount /var/calculate/home to /home")),
|
|
|
|
|
("boot",_("Separate boot partition")),
|
|
|
|
|
("uefi",_("Use UEFI bootloader")),
|
|
|
|
|
("uefi",_("Use the UEFI bootloader")),
|
|
|
|
|
("lvm",_("Use LVM")),
|
|
|
|
|
("grub",_("Create bios_grub partition")),
|
|
|
|
|
("grub",_("Create the bios_grub partition")),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
def check(self,value):
|
|
|
|
|
if "uefi" in value:
|
|
|
|
|
if self.Get('os_uefi_set') == 'off':
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("System must be loaded in UEFI for using this bootloader"))
|
|
|
|
|
_("Your system must be loaded in UEFI for using this "
|
|
|
|
|
"bootloader"))
|
|
|
|
|
if self.Get('os_install_arch_machine') != 'x86_64':
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Architecture of the target system must be x86_64 "
|
|
|
|
|
"for using UEFI bootloader"))
|
|
|
|
|
"for using the UEFI bootloader"))
|
|
|
|
|
if self.Get('cl_autopartition_table') != 'gpt':
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Partition table must be GPT for using UEFI bootloader"))
|
|
|
|
|
else:
|
|
|
|
|
if self.Get('cl_autopartition_table') == 'gpt' and not "grub" in value:
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("For grub installation need bios_grub partition"))
|
|
|
|
|
_("The 'bios_grub' partition is needed for grub install"))
|
|
|
|
|
if "grub" in value:
|
|
|
|
|
if self.Get('cl_autopartition_table') != 'gpt':
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Partition table must be GPT for bios_grub partition"))
|
|
|
|
|
_("For the bios_grub partition, the partition table "
|
|
|
|
|
"must be GPT"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class VariableClAutopartitionRootSize(AutopartitionHelper,Variable):
|
|
|
|
|