From a783cc2303d8864126fe13f3eb096688ff9e33fb Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Thu, 11 Jul 2024 14:07:45 +0100 Subject: [PATCH] Fix up SDK repo configuration to use new coreos-overlay name on startup Signed-off-by: James Le Cuirot --- sdk_lib/sdk_entry.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk_lib/sdk_entry.sh b/sdk_lib/sdk_entry.sh index eca47d7fa8..9ebc141771 100755 --- a/sdk_lib/sdk_entry.sh +++ b/sdk_lib/sdk_entry.sh @@ -10,6 +10,10 @@ fi chown -R sdk:sdk /home/sdk +# Fix up SDK repo configuration to use the new coreos-overlay name. +sed -i -r 's/^\[coreos\]/[coreos-overlay]/' /etc/portage/repos.conf/coreos.conf 2>/dev/null +sed -i -r '/^masters =/s/\bcoreos(\s|$)/coreos-overlay\1/g' /usr/local/portage/crossdev/metadata/layout.conf 2>/dev/null + # Check if the OS image version we're working on is newer than # the SDK container version and if it is, update the boards # chroot portage conf to point to the correct binhost.