From a4214738b92b7b57d4722d2fec1629eb73e1bf1e Mon Sep 17 00:00:00 2001 From: Marcel Apfelbaum Date: Wed, 25 Aug 2021 19:45:53 +0000 Subject: [PATCH] osbuilder: Fix Makefile Let the DISTRO variable to be set from outside, allowing "sudo -E DISTRO= make clean" to delete the correct files. Signed-off-by: Marcel Apfelbaum --- tools/osbuilder/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osbuilder/Makefile b/tools/osbuilder/Makefile index b70ca7a20a..a35139c5a9 100644 --- a/tools/osbuilder/Makefile +++ b/tools/osbuilder/Makefile @@ -9,7 +9,7 @@ ROOTFS_BUILDER := $(MK_DIR)/rootfs-builder/rootfs.sh INITRD_BUILDER := $(MK_DIR)/initrd-builder/initrd_builder.sh IMAGE_BUILDER := $(MK_DIR)/image-builder/image_builder.sh -DISTRO := centos +DISTRO ?= centos BUILD_METHOD := distro BUILD_METHOD_LIST := distro dracut AGENT_INIT ?= no