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 --sync error after resquashing #10

Open
kanyck opened this issue Mar 28, 2020 · 4 comments
Open

emerge --sync error after resquashing #10

kanyck opened this issue Mar 28, 2020 · 4 comments
Labels

Comments

@kanyck
Copy link

kanyck commented Mar 28, 2020

After resquashing/reboot emerge --sync fails as follows

>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git fetch origin --depth 1
remote: Enumerating objects: 75, done.
remote: Counting objects: 100% (75/75), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 38 (delta 28), reused 35 (delta 26), pack-reused 0
Unpacking objects: 100% (38/38), done.
From https://github.com/gentoo-mirror/gentoo
 + c56fe5d7ea...06d66bb5d5 stable     -> origin/stable  (forced update)
error: Entry 'dev-python/nagiosplugin/Manifest' not uptodate. Cannot merge.
fatal: Could not reset index file to revision 'refs/remotes/origin/stable'.
!!! git merge error in /usr/portage

Action: sync for repo: gentoo, returned code = 128

/ is mounted with lazytime option

@vaeth vaeth added the question label Mar 29, 2020
@vaeth
Copy link
Owner

vaeth commented Mar 29, 2020

I will leave this open, since it is already sort of FAQ.

Git relies for speedup on inode numbers which are not preserved by overlay. These need to be recalculated to work reliably. Portage needs to be patched to force this recalculation:
https://github.com/vaeth/portage-env-mv/blob/master/env/patches/portage-update-index.patch
The following patch also may make syncing more reliably:
https://github.com/vaeth/portage-env-mv/blob/master/env/patches/portage-reset-hard.patch

Please do not bug the portage maintainers about the patches: They know about them but refused them, since it slightly increases the sync time, and they consider squashfs users a corner case.

@kanyck
Copy link
Author

kanyck commented Mar 29, 2020

Oh! Thanks! Maybe you should mention this in your setup docs.

@xaviermiller
Copy link

Hi!
I am using this patch (and portage-update-index.patch) but those patches are failing with portage-3.0.24 (seems there is some rewrite at the zone where the patch should be appiled).

Do you already have a new version of the patches? If not, I will take some time to adapt them for portage-3.0.24.

Kind regards,
Xavier Miller

@vaeth
Copy link
Owner

vaeth commented Oct 1, 2021

Patches are updated now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants