mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 05:21:23 +02:00
.github: use correct make.conf when setting up Flatcar SDK
When setting up a Flatcar SDK from scratch, we need to also set up correct configs in `/etc/portage/make.conf`. For example we need to set `PORTDIR=/mnt/host/source/src/third_party/portage-stable` instead of the default Gentoo configs like `PORTDIR=/var/gentoo/repos/gentoo`. Otherwise `update_metadata` will fail in some cases, because portage cannot find the correct location of portage-stable.
This commit is contained in:
parent
4efb14c2a3
commit
a4b6456806
@ -17,6 +17,14 @@ mkdir -p ~/flatcar-sdk
|
|||||||
pushd ~/flatcar-sdk || exit
|
pushd ~/flatcar-sdk || exit
|
||||||
cork create || true
|
cork create || true
|
||||||
|
|
||||||
|
sudo tee "./chroot/etc/portage/make.conf" <<EOF
|
||||||
|
PORTDIR="/mnt/host/source/src/third_party/portage-stable"
|
||||||
|
PORTDIR_OVERLAY="/mnt/host/source/src/third_party/coreos-overlay"
|
||||||
|
DISTDIR="/mnt/host/source/.cache/distfiles"
|
||||||
|
PKGDIR="/var/lib/portage/pkgs"
|
||||||
|
PORT_LOGDIR="/var/log/portage"
|
||||||
|
EOF
|
||||||
|
|
||||||
sudo tee "./chroot/etc/portage/repos.conf/coreos.conf" <<EOF
|
sudo tee "./chroot/etc/portage/repos.conf/coreos.conf" <<EOF
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
main-repo = portage-stable
|
main-repo = portage-stable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user