Summary: | stage3 tarballs: empty /var/db/repos/ leads to repo syncs being done by root | ||
---|---|---|---|
Product: | Gentoo Release Media | Reporter: | David Sardari <d> |
Component: | Stages | Assignee: | Gentoo Release Team <releng> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dennis.lissov, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=707980 https://github.com/projg2/eselect-repository/issues/30 https://bugs.gentoo.org/show_bug.cgi?id=941605 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 941607 |
Description
David Sardari
2024-10-17 08:26:28 UTC
We should probably do this as it's an easy workaround. It'll also remove the scary warning on first sync I think for non-existent dir. But one question is if it's going to break people who are relying on being able to mount there in a stage3. (In reply to Sam James from comment #1) > We should probably do this as it's an easy workaround. It'll also remove the > scary warning on first sync I think for non-existent dir. Yes. I'll have a look. > But one question is if it's going to break people who are relying on being > able to mount there in a stage3. I dont think this is a problem anymore. As far as I know, if you mount on a directory that has contents, the contents are just silently shadowed. commit b51ceb558a282b8fdfc3952f81be037caa3d5fbe Author: Andreas K. Hüttel <dilfridge@gentoo.org> Date: Tue Jan 21 22:46:50 2025 +0100 Ensure that the repo_base directory is owned by portage:portage This allows emerge to use usersync from the start Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> commit b51ceb558a282b8fdfc3952f81be037caa3d5fbe Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: Tue Jan 21 22:46:50 2025 +0100 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: Tue Jan 21 22:51:07 2025 +0100 Ensure that the repo_base directory is owned by portage:portage This allows emerge to use usersync from the start Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> catalyst/base/stagebase.py | 5 +++++ 1 file changed, 5 insertions(+) This is fixed with the next stage builds. I wonder whether it's a good idea to default to syncing repos as the same user that's used for building packages with userpriv... should a package being built have write access to repositories? |