mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
Merge pull request #607 from flatcar/krnowak/user-patches
*: Allow applying user patches
This commit is contained in:
commit
20dbf43305
@ -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() {
|
||||
|
@ -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}"
|
||||
|
||||
|
@ -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" <<EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user