File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,13 @@ sudo mkdir -p "${BOARD_ETC}/portage/"{profile,repos.conf}
236236sudo ln -sfT " $( portageq get_repo_path / coreos-overlay) /coreos/user-patches" \
237237 " ${BOARD_ETC} /portage/patches"
238238sudo cp /etc/portage/repos.conf/* " ${BOARD_ETC} " /portage/repos.conf/
239- sudo ROOT=" ${BOARD_ROOT} " eselect profile set --force " ${PORTAGE_PROFILE} "
239+ # set PORTAGE_CONFIGROOT to tell eselect to modify the profile inside
240+ # /build/<arch>-usr, but set ROOT to /, so eselect will actually find
241+ # the profile which is outside /build/<arch>-usr, set SYSROOT to / as
242+ # well, because it must match ROOT
243+ sudo \
244+ PORTAGE_CONFIGROOT=" ${BOARD_ROOT} " ROOT=/ SYSROOT=/ \
245+ eselect profile set --force " ${PORTAGE_PROFILE} "
240246
241247# Cleanup/migrate from older make.conf files
242248sudo rm -f " ${BOARD_ETC} /make.conf" " ${BOARD_ETC} /make.conf.common"
You can’t perform that action at this time.
0 commit comments