diff options
| -rw-r--r-- | meta/classes/useradd-staticids.bbclass | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass index 149245b292..46d4a4b3da 100644 --- a/meta/classes/useradd-staticids.bbclass +++ b/meta/classes/useradd-staticids.bbclass @@ -285,6 +285,19 @@ def update_useradd_static_config(d):          return ";".join(newparams).strip() +    # The parsing of the current recipe depends on the content of +    # the files listed in USERADD_UID/GID_TABLES. We need to tell bitbake +    # about that explicitly to trigger re-parsing and thus re-execution of +    # this code when the files change. +    bbpath = d.getVar('BBPATH', True) +    for varname, default in (('USERADD_UID_TABLES', 'files/passwd'), +                             ('USERADD_GID_TABLES', 'files/group')): +        tables = d.getVar(varname, True) +        if not tables: +            tables = default +        for conf_file in tables.split(): +            bb.parse.mark_dependency(d, bb.utils.which(bbpath, conf_file)) +      # Load and process the users and groups, rewriting the adduser/addgroup params      useradd_packages = d.getVar('USERADD_PACKAGES', True) | 
