fix creation without default appliance

This commit is contained in:
Jörg Deckert 2021-02-08 09:46:23 +01:00
parent 38424c532b
commit d8998bcf46
1 changed files with 9 additions and 3 deletions

View File

@ -60,7 +60,7 @@ default_package_files := $(wildcard appliances/default/package.*)
appliance_package_files := $(wildcard appliances/$(APPLIANCE)/package.*) appliance_package_files := $(wildcard appliances/$(APPLIANCE)/package.*)
portage_default_package_files = $(patsubst appliances/default/package.%,$(CHROOT)/etc/portage/package.%/01default,$(default_package_files)) portage_default_package_files = $(patsubst appliances/default/package.%,$(CHROOT)/etc/portage/package.%/01default,$(default_package_files))
portage_package_files = $(patsubst appliances/$(APPLIANCE)/package.%,$(CHROOT)/etc/portage/package.%/02$(APPLIANCE),$(appliance_package_files)) portage_package_files = $(patsubst appliances/$(APPLIANCE)/package.%,$(CHROOT)/etc/portage/package.%/02$(APPLIANCE),$(appliance_package_files))
default_make_conf = $(wildcard appliances/default/make.conf) default_make_conf = appliances/default/make.conf
appliance_make_conf = $(wildcard appliances/$(APPLIANCE)/make.conf) appliance_make_conf = $(wildcard appliances/$(APPLIANCE)/make.conf)
portage_make_conf_local = $(CHROOT)/etc/portage/make.conf.local portage_make_conf_local = $(CHROOT)/etc/portage/make.conf.local
appliance_profile := default/linux/amd64/17.1/systemd appliance_profile := default/linux/amd64/17.1/systemd
@ -195,8 +195,14 @@ $(CHROOT)/etc/portage/package.%/02$(APPLIANCE): appliances/$(APPLIANCE)/package.
$(CHROOT)/etc/portage/make.conf: configs/make.conf.$(VA_ARCH) $(CHROOT)/etc/portage/make.conf: configs/make.conf.$(VA_ARCH)
COPY configs/make.conf.$(VA_ARCH) /etc/portage/make.conf COPY configs/make.conf.$(VA_ARCH) /etc/portage/make.conf
$(portage_make_conf_local): $(default_make_conf) $(appliance_make_conf) $(portage_make_conf_local): $(appliance_make_conf)
cat $< >> $(CHROOT)/etc/portage/make.conf.local || touch $@ if test -f $(default_make_conf); \
then COPY $(default_make_conf) /etc/portage/make.conf.local; \
fi
if test -f $(default_make_conf); \
then cat $< >> $(portage_make_conf_local); \
fi
touch $@
$(CHROOT)/var/tmp/profile: $(STAGE3) $(CHROOT)/var/tmp/profile: $(STAGE3)
RUN eselect profile set $(appliance_profile) RUN eselect profile set $(appliance_profile)