Set systemd container name according to profile.

This allows more different profiles to with the same appliance to build
simultaneously.
This commit is contained in:
Albert Hopkins 2015-09-14 10:16:56 +00:00
parent 24be5ce588
commit 1da2ba10dd
1 changed files with 8 additions and 1 deletions

View File

@ -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