Summary: | user.eclass - enewgroup/user should create new group/user in $ROOT | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vieri <rentorbuy> |
Component: | Eclasses | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Vieri
2014-04-01 06:33:06 UTC
/usr/portage/eclass/user.eclass doesn0t seem to handle the case when a ROOT variable is defined and using getent and groupadd will read/write to the parent system, not the "ROOT target". # see if group already exists if [[ -n $(egetent group "${egroup}") ]] ; then return 0 fi einfo "Adding group '${egroup}' to your system ..." [...] *) # ignore output if nscd doesn't exist, or we're not running as root nscd -i "${db}" 2>/dev/null getent "${db}" "${key}" ;; |