From 1da2ba10dd18b89b5fd240b137054edac759b120 Mon Sep 17 00:00:00 2001 From: Albert Hopkins Date: Mon, 14 Sep 2015 10:16:56 +0000 Subject: [PATCH] Set systemd container name according to profile. This allows more different profiles to with the same appliance to build simultaneously. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1d50f6c..12d4229 100644 --- a/Makefile +++ b/Makefile @@ -54,9 +54,16 @@ EXTRA_WORLD = # Allow user to override variables -include $(profile).cfg +ifneq ($(profile),) + container = $(profile)-$(APPLIANCE)-build +else + container = $(APPLIANCE)-build +endif + + inroot := systemd-nspawn --quiet \ --directory=$(CHROOT) \ - --machine=$(APPLIANCE)-build \ + --machine=$(container) \ --bind=$(PORTAGE_DIR)/portage:/usr/portage \ --bind=$(PKGDIR):/usr/portage/packages \ --bind=$(DISTDIR):/usr/portage/distfiles