Signed-off-by: Cao Xueliang caoxl78320@163.com --- src/lib/job.cr | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index a4402ab..5798ae3 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -146,16 +146,22 @@ class Job set_result_root() set_result_service() set_os_mount() + set_kernel() set_depends_initrd() - set_kernel_version() set_initrds_uri() - set_kernel_uri() - set_kernel_params() set_lkp_server() set_sshr_info() set_queue() end
+ private def set_kernel + return if os_mount == "container" + + set_kernel_version() + set_kernel_uri() + set_kernel_params() + end + private def append_init_field INIT_FIELD.each do |k, v| k = k.to_s
Reviewed-by: Xiao Shenwei xiaoshenwei96@163.com
On Wed, Dec 02, 2020 at 12:01:18AM +0800, Cao Xueliang wrote:
Signed-off-by: Cao Xueliang caoxl78320@163.com
src/lib/job.cr | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index a4402ab..5798ae3 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -146,16 +146,22 @@ class Job set_result_root() set_result_service() set_os_mount()
- set_kernel() set_depends_initrd()
- set_kernel_version() set_initrds_uri()
- set_kernel_uri()
- set_kernel_params() set_lkp_server() set_sshr_info() set_queue() end
- private def set_kernel
- return if os_mount == "container"
- set_kernel_version()
- set_kernel_uri()
- set_kernel_params()
- end
- private def append_init_field INIT_FIELD.each do |k, v| k = k.to_s
-- 2.23.0