mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 14:11:07 +02:00
setup_board: Fix setting a profile
Same fix as done in build_library/toolchain_util.sh.
This commit is contained in:
parent
39825d59c0
commit
9439203f49
@ -236,7 +236,13 @@ sudo mkdir -p "${BOARD_ETC}/portage/"{profile,repos.conf}
|
|||||||
sudo ln -sfT "$(portageq get_repo_path / coreos-overlay)/coreos/user-patches" \
|
sudo ln -sfT "$(portageq get_repo_path / coreos-overlay)/coreos/user-patches" \
|
||||||
"${BOARD_ETC}/portage/patches"
|
"${BOARD_ETC}/portage/patches"
|
||||||
sudo cp /etc/portage/repos.conf/* "${BOARD_ETC}"/portage/repos.conf/
|
sudo cp /etc/portage/repos.conf/* "${BOARD_ETC}"/portage/repos.conf/
|
||||||
sudo ROOT="${BOARD_ROOT}" eselect profile set --force "${PORTAGE_PROFILE}"
|
# set PORTAGE_CONFIGROOT to tell eselect to modify the profile inside
|
||||||
|
# /build/<arch>-usr, but set ROOT to /, so eselect will actually find
|
||||||
|
# the profile which is outside /build/<arch>-usr, set SYSROOT to / as
|
||||||
|
# well, because it must match ROOT
|
||||||
|
sudo \
|
||||||
|
PORTAGE_CONFIGROOT="${BOARD_ROOT}" ROOT=/ SYSROOT=/ \
|
||||||
|
eselect profile set --force "${PORTAGE_PROFILE}"
|
||||||
|
|
||||||
# Cleanup/migrate from older make.conf files
|
# Cleanup/migrate from older make.conf files
|
||||||
sudo rm -f "${BOARD_ETC}/make.conf" "${BOARD_ETC}/make.conf.common"
|
sudo rm -f "${BOARD_ETC}/make.conf" "${BOARD_ETC}/make.conf.common"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user