=== modified file 'functions/fsb_target_gentoo_init' --- functions/fsb_target_gentoo_init 2013-05-14 18:13:57 +0000 +++ functions/fsb_target_gentoo_init 2013-05-14 18:07:21 +0000 @@ -1,4 +1,4 @@ -local dir profile profile_link accept_keywords +local dir profile accept_keywords fsb_infer_gentoo_settings @@ -55,11 +55,8 @@ echo local >$dir/var/portage/local/profiles/repo_name || die bzr branch -r $STAGE_OVERLAY_REVNO $FSB_OVERLAY_SRC $dir/var/portage/prosys || die "Failed to branch overlay" -profile_link="$(readlink $dir/etc/portage/make.profile)" || die "could not read $dir/etc/portage/make.profile" -[[ -n $profile_link ]] || die "$dir/etc/portage/make.profile is invalid" +profile=/usr/portage/${"$(readlink /etc/make.profile)"#*/portage/} mv $dir/etc/portage/make.profile{,.orig} || die - -profile=/usr/portage/${profile_link#*/portage/} ln -s ../../var/portage/local/profiles/custom $dir/etc/portage/make.profile || die echo $profile >$dir/etc/portage/make.profile/parent || die echo /var/portage/prosys/overlay/profiles/arch/$STAGE_GENTOO_MACHINE >>$dir/etc/portage/make.profile/parent || die