Closed rck closed 2 years ago
Is there some progress on that? It is pretty obvious that this is a bug, isn't it, do you need further information? It is just not obvious where to fix it, and if you want to fix the "flatcar-linux" part or the "kinvolk" part, that is something the project needs to decide, I can not make that decision and prepare a MR.
If somebody runs into the same issue, a hackish fix for now is:
commit = repo.sync_uri.replace('//', '').replace('.git', '').split('/', 1)[-1]
commit = commits.get(commit.replace('kinvolk','flatcar-linux'))
Hi. Thanks for reporting this issue. This looks like a fallout from moving the repos from kinvolk to flatcar-linux org, and it looks to me that redirects that github installs are rather a mixed blessing here.
As a stop-gap measure, could you edit /etc/portage/repos.conf/coreos.conf
inside the dev-container and replace kinvolk
with flatcar-linux
in sync-uri
keys for both coreos
and portage-stable
sections? Would this change make things work again?
As a stop-gap measure, could you edit /etc/portage/repos.conf/coreos.conf inside the dev-container and replace kinvolk with flatcar-linux in sync-uri keys for both coreos and portage-stable sections? Would this change make things work again?
I'd assume it from what I saw in the code, but also gave it a real test run which results in what I would expect.
>>> Git clone in /var/lib/portage/coreos-overlay successful
Note: switching to 'refs/tags/stable-3033.2.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 7f631ba50 Merge pull request #1488 from flatcar-linux/linux-5.10.84-flatcar-3033
>>> Release checkout refs/tags/stable-3033.2.0 in /var/lib/portage/coreos-overlay successful
Thanks for confirming, this should be fixed in next release.
Description
In a developer container
emerge-gitclone
always checks out HEAD because there is a mismatch between the repo nameemerge-gitlclone
generates and repo names in the onlinerelease.xml
Impact
As at always checks out HEAD it makes module building impossible/cumbersome as host kernel and kernel headers mismatch while the headers that get installed in the container obviously should match the flatcar release information.
Environment and steps to reproduce
wget https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_developer_container.bin.bz2 -O flatcar_developer_container_current.bin.bz2
)bunzip2 -k flatcar_developer_container_current.bin.bz2 && sudo systemd-nspawn --image=flatcar_developer_container_current.bin
)/usr/lib/python-exec/python3.6/emerge-gitclone
, diff with debug prints:emerge-gitclone
rusults in:So it tries to find
**kinvolk**/portage-stable
, but therelease.xml
has**flatcar-linux**/portage-stable
which can be seen in the debug output ofcommits
, as well as in:Expected behavior
emerge-gitclone
checkout matches source ofFLATCAR_RELEASE_VERSION
.Additional information
My assumption is that happened when switching github repos/orginisations between "kinvolk" and "flatcar-linux". I'm sure you know best if you want to change the clone url or change the
manifest.xml
.