|
|
|
@ -400,6 +400,7 @@ class fillVars(object, varsShare):
|
|
|
|
|
return "0"
|
|
|
|
|
|
|
|
|
|
def get_cl_builder_image_path(self):
|
|
|
|
|
"""Path which contains images"""
|
|
|
|
|
imagePath = ['/var/calculate/linux',
|
|
|
|
|
'/var/calculate/remote/linux',
|
|
|
|
|
'/usr/calculate/share/linux']
|
|
|
|
@ -408,3 +409,17 @@ class fillVars(object, varsShare):
|
|
|
|
|
self.Get('os_builder_profile').replace('/','-'),
|
|
|
|
|
"linux"))
|
|
|
|
|
return imagePath
|
|
|
|
|
|
|
|
|
|
def get_cl_builder_kernel_cmd(self):
|
|
|
|
|
"""Suffix for kernel cmdline"""
|
|
|
|
|
suffix = ""
|
|
|
|
|
timezone = self.Get('os_builder_clock_timezone')
|
|
|
|
|
lang = self.Get('os_builder_locale_lang')
|
|
|
|
|
if timezone and lang:
|
|
|
|
|
suffix = "calculate=lang:%s,keymap:%s,timezone:%s" % \
|
|
|
|
|
(lang,lang,timezone)
|
|
|
|
|
elif timezone:
|
|
|
|
|
suffix = "calculate=,,timezone:%s"%(timezone)
|
|
|
|
|
elif lang:
|
|
|
|
|
suffix = "calculate=lang:%s,keymap:%s" % (lang,lang)
|
|
|
|
|
return suffix
|
|
|
|
|