[PATCH compass-ci] src/lib: add common deps packages

[why] when run job with initramfs, some command like time and perf are not found [how] add depends package of initramfs-common to install the common package Signed-off-by: Zhang Yu <2134782174@qq.com> --- src/lib/job.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/job.cr b/src/lib/job.cr index 0083a7d..1c30f38 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -497,6 +497,7 @@ class Job private def get_depends_initrd(program_params, initrd_deps_arr, initrd_pkg_arr) initrd_http_prefix = "http://#{INITRD_HTTP_HOST}:#{INITRD_HTTP_PORT}" mount_type = os_mount == "cifs" ? "nfs" : os_mount.dup + program_params["initramfs-common"] = JSON::Any.new("") if os_mount == "initramfs" program_params.keys.each do |program| if program =~ /^(.*)-\d+$/ -- 2.23.0

Why this will work? I don't find any initramfs-common file or content in our repos. Thanks, Fengguang On Tue, Dec 15, 2020 at 11:14:17AM +0800, Zhang Yu wrote:
[why] when run job with initramfs, some command like time and perf are not found
[how] add depends package of initramfs-common to install the common package
Signed-off-by: Zhang Yu <2134782174@qq.com> --- src/lib/job.cr | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/lib/job.cr b/src/lib/job.cr index 0083a7d..1c30f38 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -497,6 +497,7 @@ class Job private def get_depends_initrd(program_params, initrd_deps_arr, initrd_pkg_arr) initrd_http_prefix = "http://#{INITRD_HTTP_HOST}:#{INITRD_HTTP_PORT}" mount_type = os_mount == "cifs" ? "nfs" : os_mount.dup + program_params["initramfs-common"] = JSON::Any.new("") if os_mount == "initramfs"
program_params.keys.each do |program| if program =~ /^(.*)-\d+$/ -- 2.23.0
participants (2)
-
Wu Fengguang
-
Zhang Yu