"env-update" complains about missing "/var/db/repos/gentoo": [root@sysrescue ~]# chroot /mnt/gentoo /bin/bash sysrescue / # source /etc/profile sysrescue / # su - sysrescue ~ # env-update && source /etc/profile && export PS1="(chroot) $PS1" !!! Section 'gentoo' in repos.conf has location attribute set to nonexistent directory: '/var/db/repos/gentoo' !!! Invalid Repository Location (not a dir): '/var/db/repos/gentoo' >>> Regenerating /etc/ld.so.cache... (chroot) sysrescue ~ # Thus, it's good to have it included in stage3 tarballs with portage:portage ownership: [root@sysrescue ~]# chroot /mnt/gentoo /bin/bash sysrescue / # source /etc/profile sysrescue / # su - sysrescue ~ # env-update && source /etc/profile && export PS1="(chroot) $PS1" >>> Regenerating /etc/ld.so.cache... (chroot) sysrescue ~ # ls -la /var/db/repos/gentoo/ total 0 drwxr-xr-x 1 portage portage 0 29. Mär 19:32 . drwxr-xr-x 1 root root 24 29. Mär 19:49 .. (chroot) sysrescue ~ # Having "/var/db/repos/gentoo" owned by portage:porage will enforce running the "sync" operation of, for example, "emerge --sync" as "portage" user. Reproducible: Always
There should be no need to run env-update before initially syncing the gentoo repo. Why are you doing that?
ah, OK. I didn't know that. Nevertheless, wouldn't it be good to have the folder predelivered with "portage:portage" ownership in order to avoid running the sync as root by accident?
I think it would make more sense to have Portage handle setting the owner on the initial sync if the directory does not exist.
yeah, that would be better :)