Created attachment 650900 [details] account-creation.patch I'm using the ROOT variable to create system images. This works fine but user and group accounts are always created in `/`. I have added a patch that works for me, but like to discuss it here as I have no experience in eclass development a.k.a. please be gentle. :)
I just ran into the same issue. I disagree with the patch, however. In EAPI 7, the default ROOT variable is "", not "/", which will (probably?) break commands with '-R ${ROOT}'. Instead I suggest adding it to opts only when ROOT is changed from the default value.
Possible duplicate, please note bug #541406. Also, for my patch concerns, please note bug #671300.
commit 6b1d4e40db188e64fb0731195b87b261d76e060c Author: Jérémy Connat <morderca@morderca.net> AuthorDate: Mon Feb 1 13:25:12 2021 +0100 Commit: Sam James <sam@gentoo.org> CommitDate: Sat Apr 23 02:26:52 2022 +0100 acct-user.eclass: Fixing user/group creation when using different ROOT Signed-off-by: Jérémy Connat <morderca@morderca.net> Closes: https://github.com/gentoo/gentoo/pull/19204 Signed-off-by: Sam James <sam@gentoo.org>