diff --git a/build_library/catalyst.sh b/build_library/catalyst.sh index 5bb6003420..a0aeab2db0 100644 --- a/build_library/catalyst.sh +++ b/build_library/catalyst.sh @@ -245,6 +245,9 @@ write_configs() { catalyst_stage3 > "$TEMPDIR/stage3.spec" info " stage4.spec" catalyst_stage4 > "$TEMPDIR/stage4.spec" + info "Putting a symlink to user patches..." + ln -sf '/var/gentoo/repos/local/coreos/user-patches' \ + "$TEMPDIR/portage/patches" } build_stage() { diff --git a/setup_board b/setup_board index c6fc42a652..7595b44ae1 100755 --- a/setup_board +++ b/setup_board @@ -233,6 +233,8 @@ fi info "Configuring portage in ${BOARD_ROOT}" sudo mkdir -p "${BOARD_ETC}/portage/"{profile,repos.conf} +sudo ln -sf "$(portageq get_repo_path / coreos)/coreos/user-patches" \ + "${BOARD_ETC}/portage/patches" sudo cp /etc/portage/repos.conf/* "${BOARD_ETC}"/portage/repos.conf/ sudo ROOT="${BOARD_ROOT}" eselect profile set --force "${PORTAGE_PROFILE}" diff --git a/update_chroot b/update_chroot index 64ac40aca5..81b94f85c6 100755 --- a/update_chroot +++ b/update_chroot @@ -83,6 +83,7 @@ info "Setting up portage..." sudo mkdir -p "${REPO_CACHE_DIR}/distfiles" sudo chown "${PORTAGE_USERNAME}:portage" "${REPO_CACHE_DIR}/distfiles" sudo mkdir -p /etc/portage/repos.conf /var/lib/portage/pkgs +sudo ln -sf "${COREOS_OVERLAY}/coreos/user-patches" '/etc/portage/patches' sudo touch /etc/portage/make.conf.user sudo_clobber "/etc/portage/make.conf" <