|
|
|
@ -399,9 +399,9 @@ class VariableClAutopartitionSwapSize(SizeHelper,AutopartitionHelper,Variable):
|
|
|
|
|
self.help = _("set the swap partition size for autopartition")
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
size = self.Get('hr_memory_size')
|
|
|
|
|
if size < Sizes.G:
|
|
|
|
|
size = Sizes.G
|
|
|
|
|
size = int(self.Get('hr_memory_size')) / Sizes.M
|
|
|
|
|
if size < Sizes.K:
|
|
|
|
|
size = Sizes.K
|
|
|
|
|
return str(size)
|
|
|
|
|
|
|
|
|
|
def humanReadable(self):
|
|
|
|
@ -868,7 +868,8 @@ class VariableClAutopartitionDiskSize(ReadonlyVariable,AutopartitionHelper):
|
|
|
|
|
availSize = self.Get('cl_autopartition_device_size')
|
|
|
|
|
if device:
|
|
|
|
|
return list(self.generateSize(scheme,
|
|
|
|
|
self.Get('cl_autopartition_swap_size'),
|
|
|
|
|
str(int(self.Get('cl_autopartition_swap_size'))
|
|
|
|
|
*Sizes.M),
|
|
|
|
|
self.Get('cl_autopartition_boot_size'),
|
|
|
|
|
self.Get('cl_autopartition_uefi_size'),
|
|
|
|
|
str(int(self.Get('cl_autopartition_root_size'))
|
|
|
|
|