Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emerge-gitclone seems broken in 3033.3.11 SDK #1002

Closed
da-x opened this issue Apr 18, 2023 · 6 comments
Closed

emerge-gitclone seems broken in 3033.3.11 SDK #1002

da-x opened this issue Apr 18, 2023 · 6 comments
Labels
channel/alpha Issue concerns the Alpha channel. channel/beta Issue concerns the Beta channel. channel/lts channel/stable Issue concerns the Stable channel. fixed-awaiting-release kind/bug Something isn't working workaround-available

Comments

@da-x
Copy link

da-x commented Apr 18, 2023

This is what I am getting running emerge-gitclone under the SDK:

Output:

>> Starting git clone in /var/lib/portage/scripts
Cloning into '/var/lib/portage/scripts'...
remote: Enumerating objects: 272809, done.
remote: Counting objects: 100% (4240/4240), done.
remote: Compressing objects: 100% (1330/1330), done.
remote: Total 272809 (delta 1326), reused 4173 (delta 1298), pack-reused 268569
Receiving objects: 100% (272809/272809), 91.66 MiB | 2.45 MiB/s, done.
Resolving deltas: 100% (120672/120672), done.
>>> Git clone in /var/lib/portage/scripts successful
fatal: not a git repository: ../../../../.git/modules/sdk_container/src/third_party/coreos-overlay
fatal: could not reset submodule index
@da-x da-x added the kind/bug Something isn't working label Apr 18, 2023
@da-x
Copy link
Author

da-x commented Apr 19, 2023

Just to be clear, this is tried under the container spawned using sudo systemd-nspawn --image=flatcar_developer_container.bin as suggested in Building custom kernel modules | Flatcar Container Linux.

@tormath1
Copy link
Contributor

Hello @da-x and thanks for the report,

We recently merged our main repositories (flatcar/portage-stable and flatcar/coreos-overlay) into flatcar/scripts and as a big change never comes alone it seems we missed to include this change in the latest release: flatcar/flatcar-dev-util#15.

While it should be fixed in the next releases, could you try with this nightly build: http://bincache.flatcar-linux.net/images/amd64/3033.3.11+nightly-20230417-2100/ ?

@t-lo
Copy link
Member

t-lo commented Apr 19, 2023

Hello @da-x ,

Please pardon the mishap - the version of emerge-gitclone shipped with the last releases is indeed unable to handle the new unified scripts repo. As Mathieu stated we've fixed this issue in main and in all release branches (channels) and will roll out a fix with the next patch release within at most 2 weeks.

Using last nightly's devcontainer as proposed above is indeed a good option to proceed.

Another workaround until the fix is rolled out would be to wget the newer version of emerge-gitclone used in both the nightly devcontainer as well as in the upcoming LTS 3033 release (ref 9240efb80504da934b2315cc89bddb81b739b214). Right after the sudo systemd-nspawn ... step, run

wget https://raw.githubusercontent.com/flatcar/flatcar-dev-util/9240efb80504da934b2315cc89bddb81b739b214/emerge-gitclone

then use the emerge-gitclone version just downloaded instead of the one shipped in the devcontainer.

@t-lo t-lo added channel/alpha Issue concerns the Alpha channel. channel/beta Issue concerns the Beta channel. channel/stable Issue concerns the Stable channel. channel/lts workaround-available fixed-awaiting-release labels Apr 19, 2023
@da-x
Copy link
Author

da-x commented Apr 19, 2023

Thanks! It's very helpful. I'll update

@da-x
Copy link
Author

da-x commented Apr 24, 2023

Workaround worked. Thanks

@da-x da-x closed this as completed Apr 24, 2023
@tormath1
Copy link
Contributor

Hello @da-x, for your information we just released a new set of maintenance releases including the fix for this issue (https://www.flatcar.org/releases#release-3033.3.12). Everything should be back on track from now: happy hacking on Flatcar and feel free to join the #flatcar Matrix channel to share your experiments. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
channel/alpha Issue concerns the Alpha channel. channel/beta Issue concerns the Beta channel. channel/lts channel/stable Issue concerns the Stable channel. fixed-awaiting-release kind/bug Something isn't working workaround-available
Projects
None yet
Development

No branches or pull requests

3 participants