user.eclass: Ensure existence of shadow file before adding users

Previous changes that removed touching the shadow file in src_install()
caused issues when the package was upgraded and the shadow file was
removed. Now making sure that shadow file exists before adding new
users.

BUG=chromium:1026899
TEST=(grunt) emerge chromeos-base with existing shadow file and without.
Check shadow file to make sure it's populated proper

Change-Id: I6dbb7caeedaaa6733fe1b19b3f39b6ef85972a68
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/eclass-overlay/+/1933125
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Pranay Shoroff <pshoroff@google.com>
Commit-Queue: Pranay Shoroff <pshoroff@google.com>
1 file changed
tree: daa0299f1110a89eb0fbd9909c7549104a6387e2
  1. eclass/
  2. metadata/
  3. profiles/
  4. OWNERS
  5. PRESUBMIT.cfg