diff --git a/io_burst/burst_io.sh b/io_burst/burst_io.sh index 4f5d1fb..7ea0fc9 100755 --- a/io_burst/burst_io.sh +++ b/io_burst/burst_io.sh @@ -330,6 +330,13 @@ while [[ $# -gt 0 ]]; do ;; esac done + +# Install needed packages based on what's listed in the wrapper's json file +${TOOLS_BIN}/package_tool --no_packages $to_no_pkg_install --wrapper_config ${run_dir}/io_burst-wrapper.json +if [[ $? -ne 0 ]]; then + exit_out "package_tool reported failure installing dependencies." 1 +fi + # # Get the disk size if present. # diff --git a/io_burst/io_burst-wrapper.json b/io_burst/io_burst-wrapper.json new file mode 100644 index 0000000..b36ab6d --- /dev/null +++ b/io_burst/io_burst-wrapper.json @@ -0,0 +1,27 @@ +{ + "dependencies": { + "rhel": [ + "bc", + "gcc", + "git", + "make", + "perf", + "unzip", + "zip", + "pcp-zeroconf", + "pcp-pmda-openmetrics", + "pcp-pmda-denki" + ], + "ubuntu": [ + "bc", + "gcc", + "git", + "make", + "linux-tools-generic", + "unzip", + "zip", + "pcp-zeroconf" + ] + } +} +