Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 882335

Summary: sys-apps/portage-3.0.39: git syncing broken on overlayfs w/ squashfs below
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-11-21 03:34:17 UTC
$ mount | grep /var/db
/var/db/squashfs/repos.ro.sqfs on /var/db/squashfs/repos.ro type squashfs (ro,nosuid,nodev,noexec,relatime,errors=continue,user)
overlay on /var/db/repos type overlay (rw,noatime,lowerdir=/var/db/squashfs/repos.ro,upperdir=/var/db/squashfs/repos.rw/data,workdir=/var/db/squashfs/repos.rw/work)

$ emerge --sync
error: could not lock config file /etc/gitconfig: Permission denied
/usr/bin/git fetch origin --depth 1
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...                                                                                                  [ ok ]
 * Trusted signature found on top commit
error: Entry 'dev-java/icu4j/icu4j-72.1.ebuild' not uptodate. Cannot merge.
fatal: Could not reset index file to revision 'refs/remotes/origin/stable'.
!!! git merge error in /var/db/repos/gentoo
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-12-08 00:57:10 UTC
If you're using squashfs, maybe syncing shouldn't be done via git anyway but instead via some mechanism using the squashfs images we distribute?

No difference if you sync as root, right?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-12-08 04:24:08 UTC
(In reply to John Helmert III from comment #1)
> If you're using squashfs, maybe syncing shouldn't be done via git anyway but
> instead via some mechanism using the squashfs images we distribute?

That would be both slower and imply 24 hour delay, so no.

> No difference if you sync as root, right?

Doubt it.  Don't want to break ownership all over the place just to try.