diff --git a/Makefile b/Makefile index 7e65ae0..21b7803 100644 --- a/Makefile +++ b/Makefile @@ -173,10 +173,11 @@ endif $(inroot) eselect profile set 1 cp configs/locale.gen $(CHROOT)/etc/locale.gen $(inroot) locale-gen - mkdir -p $(CHROOT)/etc/portage -ifdef PACKAGE_FILES - cp $(PACKAGE_FILES) $(CHROOT)/etc/portage/ -endif + for f in $(PACKAGE_FILES); do \ + base=`basename $$f` ; \ + mkdir -p $(CHROOT)/etc/portage/$$base; \ + cp $$f $(CHROOT)/etc/portage/$$base/virtual-appliance-$$base; \ + done touch compile_options base_system: mounts compile_options