Skip to content

Commit

Permalink
data/kata-collect-data: support kata containers snap
Browse files Browse the repository at this point in the history
Use `kata-containers.runtime` that is the runtime binary, to
collect the data if the kata-runtime binary is not installed

fixes kata-containers#1720

Signed-off-by: Julio Montes <julio.montes@intel.com>
(cherry picked from commit 19288aa)
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
  • Loading branch information
Julio Montes authored and Ganesh Maharaj Mahalingam committed Jun 3, 2019
1 parent 98eff68 commit 69c7224
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/kata-collect-data.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

typeset -r script_name=${0##*/}
typeset -r runtime_name="@RUNTIME_NAME@"
typeset -r runtime=$(command -v "$runtime_name" 2>/dev/null)
typeset -r runtime_path=$(command -v "$runtime_name" 2>/dev/null)
typeset -r runtime_snap_name="kata-containers.runtime"
typeset -r runtime_snap_path=$(command -v "$runtime_snap_name" 2>/dev/null)
typeset -r runtime=${runtime_path:-"$runtime_snap_path"}
typeset -r issue_url="@PROJECT_BUG_URL@"
typeset -r script_version="@VERSION@ (commit @COMMIT@)"

Expand Down

0 comments on commit 69c7224

Please sign in to comment.