Before the search for alternative location of the 'db' to lookup the number
for a given user/group-name was only searched in ${prefix} projectroot which
is mostly available in a project. However the ${prefix} for installed ptxdist
is 'generic'.
Check this additional prefix to prevent errors when no local /etc/passwd or
/etc/group is available to use the generic version provbided by ptxdist.

Signed-off-by: Andreas Bießmann <biessm...@corscience.de>
---
 scripts/lib/ptxd_make_xpkg_pkg.sh |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh 
b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 476ad58..8dd850c 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -48,7 +48,8 @@ ptxd_install_getent_id() {
 
     eval ${key}_name='\(${!key}\)'
 
-    if ! ptxd_get_alternative "projectroot" "${db}"; then
+    if ! ptxd_get_alternative "projectroot" "${db}" -o \
+        ! ptxd_get_alternative "generic" "${db}" ; then
        ptxd_bailout "
 
   Unable to find '${db}'.
-- 
1.7.10.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to