diff --git a/Makefile b/Makefile index 2765605e..be42b7d8 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,9 @@ TAG = lorax-$(VERSION)-$(RELEASE) IMAGE_RELEASE = $(shell awk -F: '/FROM/ { print $$2}' Dockerfile.test) ifeq ($(TEST_OS),) -TEST_OS = rhel-7-7 +OS_ID = $(shell awk -F= '/^ID=/ {print $$2}' /etc/os-release) +OS_VERSION = $(shell awk -F= '/^VERSION_ID/ {print $$2}' /etc/os-release | tr '.' '-') +TEST_OS = $(OS_ID)-$(OS_VERSION) endif export TEST_OS VM_IMAGE=$(CURDIR)/test/images/$(TEST_OS)