Fix this because of the changes of 'initrds_uri' and 'kernel_uri' of the job.
| field | before | now | |-------------+--------------+-------| | initrds_uri | initrd <uri> | <uri> | | kernel_uri | kernel <uri> | <uri> |
Signed-off-by: Ren Wen 15991987063@163.com --- src/scheduler/find_job_boot.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/scheduler/find_job_boot.cr b/src/scheduler/find_job_boot.cr index b2f0802..fe239d8 100644 --- a/src/scheduler/find_job_boot.cr +++ b/src/scheduler/find_job_boot.cr @@ -158,8 +158,8 @@ class Sched
private def get_boot_ipxe(job : Job) response = "#!ipxe\n\n" - response += Array(String).from_json(job.initrds_uri).join("\n") + "\n" - response += job.kernel_uri + " " + response += "initrd " + Array(String).from_json(job.kernel_params).join("\ninitrd ") + "\n" + response += "kernel #{job.kernel_uri} " response += Array(String).from_json(job.kernel_params).join(" ") response += "\nboot\n"
- response += Array(String).from_json(job.initrds_uri).join("\n") + "\n"
- response += job.kernel_uri + " "
- response += "initrd " + Array(String).from_json(job.kernel_params).join("\ninitrd ") + "\n"
job.kernel_params -> job.initrds_uri
Thanks, RenWen
- response += "kernel #{job.kernel_uri} " response += Array(String).from_json(job.kernel_params).join(" ") response += "\nboot\n"
-- 2.23.0