|
|
|
@ -460,7 +460,7 @@ class VariableClLive(Variable):
|
|
|
|
|
|
|
|
|
|
class VariableClTemplatesLocate(Variable):
|
|
|
|
|
"""
|
|
|
|
|
Disks for boot mbr
|
|
|
|
|
Location templates
|
|
|
|
|
"""
|
|
|
|
|
type = "choice-list"
|
|
|
|
|
value = ['overlay','local','remote','clt']
|
|
|
|
@ -481,12 +481,6 @@ class VariableClTemplatesLocate(Variable):
|
|
|
|
|
('remote',_('Remote templates')),
|
|
|
|
|
('clt',_('clt templates'))]
|
|
|
|
|
|
|
|
|
|
# def check(self,value):
|
|
|
|
|
# for item in value:
|
|
|
|
|
# if not item in ['overlay','local','remote','clt']:
|
|
|
|
|
# raise VariableError("locate must be from list 'overlay',"
|
|
|
|
|
# "'local','remote','clt'")
|
|
|
|
|
|
|
|
|
|
class VariableOsInstallPxe(ReadonlyVariable):
|
|
|
|
|
"""
|
|
|
|
|
Installation for PXE loading
|
|
|
|
@ -498,7 +492,8 @@ class VariableOsInstallPxe(ReadonlyVariable):
|
|
|
|
|
if value == "on":
|
|
|
|
|
if self.Get('os_linux_system') != "server":
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("PXE installation is available for server only"))
|
|
|
|
|
_("PXE installation is available for Calculate Directory "
|
|
|
|
|
"Server only")+'.')
|
|
|
|
|
for pkg in ['net-misc/dhcp','net-ftp/tftp-hpa','net-fs/nfs-utils']:
|
|
|
|
|
if not isPkgInstalled(pkg):
|
|
|
|
|
raise VariableError(
|
|
|
|
|