
On Thu, Oct 29, 2020 at 12:08:28PM +0800, Liu Yinsi wrote:
kernel_append_root kernel_params docker_image + kernel_version )
where is kernel_version come from? user specify in job.yaml and has a dafault?
Thanks, Shenwei
Every os has a default kernel_version, if users not set, it will use default, if users specify a kernel_version in job.yaml, it will use the specified one.
Thanks, Xijian
macro method_missing(call) @@ -293,8 +294,9 @@ class Job end
private def set_kernel_uri + vmlinuz_sub_path = (("#{kernel_version}" == "default") ? "vmlinuz" : "boot/vmlinuz-#{kernel_version}") self["kernel_uri"] = "kernel #{OS_HTTP_PREFIX}" + - "#{JobHelper.service_path("#{SRV_OS}/#{os_dir}/vmlinuz")}" + "#{JobHelper.service_path("#{SRV_OS}/#{os_dir}/#{vmlinuz_sub_path}")}"
vmlinuz should keep, if use vmlinuz_sub_path, can it find default vmlinuz?
Thanks, Yinsi
I've kept vmlinuz: (("#{kernel_version}" == "default") ? "vmlinuz" : "boot/vmlinuz-#{kernel_version}") says if use default kernel, vmlinuz_sub_path is just vmlinuz. Thanks, Xijian