Fix package.* files installation to work with new stage3's

The new (2015-02) stage3 tarballs use package.* directories instead of
files, causing the files to fail to be copied over.  This change instead
copies them to the directories, creating them if they don't already exist.
This commit is contained in:
Albert Hopkins 2015-02-28 22:20:50 +00:00
parent 99c79d353d
commit 82162dfffa
1 changed files with 5 additions and 4 deletions

View File

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