We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
limactl edit
yq -i
1 parent 0e93110 commit 3c289eeCopy full SHA for 3c289ee
hack/inject-cmdline-to-template.sh
@@ -91,7 +91,7 @@ function inject_to() {
91
for field_name in location digest cmdline; do
92
[[ -z ${!field_name} ]] || fields+=("\"${field_name}\": \"${!field_name}\"")
93
done
94
- yq -i -I 2 eval "setpath([(.images[] | select(.arch == \"${arch}\") | path)].[${index}] + \"${key}\"; { ${fields[*]}})" "${template}"
+ limactl edit --log-level error --set "setpath([(.images[] | select(.arch == \"${arch}\") | path)].[${index}] + \"${key}\"; { ${fields[*]}})" "${template}"
95
}
96
inject_to "${template}" "${arch}" "${index}" "kernel" "${kernel_location}" "${kernel_digest}" "${cmdline}"
97
inject_to "${template}" "${arch}" "${index}" "initrd" "${initrd_location}" "${initrd_digest}"
0 commit comments