|
|
|
@ -49,6 +49,14 @@ class fillVars(object, glob_attr):
|
|
|
|
|
else:
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
def get_cl_install_system_action(self):
|
|
|
|
|
"""Need perform templates for install:system"""
|
|
|
|
|
if self.Get('cl_action') in ('system','merge') and \
|
|
|
|
|
self.Get('os_install_scratch'):
|
|
|
|
|
return "up"
|
|
|
|
|
else:
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
def get_os_net_interfaces_info(self):
|
|
|
|
|
"""Информация о существующих сетевых интерфейсах"""
|
|
|
|
|
netInterfaces=self.Get("os_net_interfaces")
|
|
|
|
@ -971,3 +979,11 @@ class fillVars(object, glob_attr):
|
|
|
|
|
def get_os_install_lang(self):
|
|
|
|
|
"""Supported languages"""
|
|
|
|
|
return clLocale().getLangs()
|
|
|
|
|
|
|
|
|
|
def get_os_install_scratch(self):
|
|
|
|
|
"""Install system in scratch mode"""
|
|
|
|
|
return self.Get('os_scratch')
|
|
|
|
|
|
|
|
|
|
def get_os_scratch(self):
|
|
|
|
|
"""Current system is scratch"""
|
|
|
|
|
return "on" isMount('/mnt/scratch') else "off"
|
|
|
|
|