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:
parent
24be5ce588
commit
1da2ba10dd
9
Makefile
9
Makefile
|
@ -54,9 +54,16 @@ EXTRA_WORLD =
|
||||||
# Allow user to override variables
|
# Allow user to override variables
|
||||||
-include $(profile).cfg
|
-include $(profile).cfg
|
||||||
|
|
||||||
|
ifneq ($(profile),)
|
||||||
|
container = $(profile)-$(APPLIANCE)-build
|
||||||
|
else
|
||||||
|
container = $(APPLIANCE)-build
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
inroot := systemd-nspawn --quiet \
|
inroot := systemd-nspawn --quiet \
|
||||||
--directory=$(CHROOT) \
|
--directory=$(CHROOT) \
|
||||||
--machine=$(APPLIANCE)-build \
|
--machine=$(container) \
|
||||||
--bind=$(PORTAGE_DIR)/portage:/usr/portage \
|
--bind=$(PORTAGE_DIR)/portage:/usr/portage \
|
||||||
--bind=$(PKGDIR):/usr/portage/packages \
|
--bind=$(PKGDIR):/usr/portage/packages \
|
||||||
--bind=$(DISTDIR):/usr/portage/distfiles
|
--bind=$(DISTDIR):/usr/portage/distfiles
|
||||||
|
|
Loading…
Reference in New Issue