mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
scripts: Add qemu version details to hypervisor script
Set the qemu major and minor version variables in the hypervisor configuration script. Partially fixes #13. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
2079f90290
commit
99a97f74ca
@ -175,6 +175,17 @@ show_array()
|
|||||||
# Entry point
|
# Entry point
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
local qemu_version_file="VERSION"
|
||||||
|
[ -f ${qemu_version_file} ] || die "QEMU version file '$qemu_version_file' not found"
|
||||||
|
|
||||||
|
local qemu_version_major=$(cut -d. -f1 "${qemu_version_file}")
|
||||||
|
local qemu_version_minor=$(cut -d. -f2 "${qemu_version_file}")
|
||||||
|
|
||||||
|
[ -n "${qemu_version_major}" ] \
|
||||||
|
|| die "cannot determine qemu major version from file $qemu_version_file"
|
||||||
|
[ -n "${qemu_version_minor}" ] \
|
||||||
|
|| die "cannot determine qemu minor version from file $qemu_version_file"
|
||||||
|
|
||||||
arch=$(arch)
|
arch=$(arch)
|
||||||
|
|
||||||
# Array of configure options.
|
# Array of configure options.
|
||||||
|
Loading…
Reference in New Issue
Block a user