Create /etc/portage on stage1-controller.
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Tue, 21 Aug 2012 02:47:10 +0000 (02:47 +0000)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Tue, 21 Aug 2012 02:47:10 +0000 (02:47 +0000)
Also update the copy of make.conf to use /etc/portage instead of /etc. Stop copying make.profile as it's set by eselect inside the chroot.

targets/stage1/stage1-controller.sh

index 3c348ceddf56dcda5cecdc80d57ddccb737ac725..70a6634746320c5693f10bdb23b36b6e0ab23c31 100644 (file)
@@ -7,14 +7,13 @@ case $1 in
        ;;
        run)
                cp ${clst_sharedir}/targets/stage1/build.py ${clst_chroot_path}/tmp
-               
+
                # Setup "ROOT in chroot" dir
                install -d ${clst_chroot_path}/${clst_root_path}/etc
-               
+               install -d ${clst_chroot_path}/${clst_root_path}/etc/portage
+
                # Setup make.conf and make.profile link in "ROOT in chroot":
-               copy_to_chroot ${clst_chroot_path}/etc/portage/make.conf /${clst_root_path}/etc
-               copy_to_chroot ${clst_chroot_path}/etc/portage/make.profile \
-                       /${clst_root_path}/etc
+               copy_to_chroot ${clst_chroot_path}/etc/portage/make.conf /${clst_root_path}/etc/portage
 
                # Enter chroot, execute our build script
                exec_in_chroot \