Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 882335 - sys-apps/portage-3.0.39: git syncing broken on overlayfs w/ squashfs below
Summary: sys-apps/portage-3.0.39: git syncing broken on overlayfs w/ squashfs below
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-21 03:34 UTC by Michał Górny
Modified: 2022-12-08 04:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.