user.eclass: require some fields in overlays be in sync

While we expect people to be able to override things like the shell,
home, password, supplemental groups, etc... for accounts, we don't
expect them to override core values like the uid or gid.  We also
don't want boards using the same account name but for a completely
different reason (i.e. there's an accidental name reuse).

Add a sanity check to make sure these core fields are in sync with
all overlays that we scanned.

BUG=b:112722312
TEST=precq passes

Change-Id: If8036c3b584f6bca2527bb236ba47cd61c5c60c8
Reviewed-on: https://chromium-review.googlesource.com/1180553
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
1 file changed
tree: 8d95c376ce71b14457ca14d2b01039a9382b1b84
  1. eclass/
  2. metadata/
  3. profiles/
  4. PRESUBMIT.cfg