system: Make sure user accounts refer to existing groups.
authorLudovic Courtès <ludo@gnu.org>
Sun, 24 May 2015 16:02:54 +0000 (18:02 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 24 May 2015 16:02:54 +0000 (18:02 +0200)
commit0c09a306e59e2feec9818335b0b4f3355c02f420
treeb554200d7969247f47ebfbb4ed9c81dd572cdce5
parent6ec1f4caa34d350d9f8b90b71192c1d32807d934
system: Make sure user accounts refer to existing groups.

Fixes <http://bugs.gnu.org/20646>.
Reported by David Thompson <davet@gnu.org>.

* gnu/system/shadow.scm (assert-valid-users/groups): New procedure
* gnu/system.scm (operating-system-activation-script): Use it.
* tests/guix-system.sh (make_user_config): New function.
  Add 3 tests using it.
* po/guix/POTFILES.in: Add gnu/system/shadow.scm.
gnu/system.scm
gnu/system/shadow.scm
po/guix/POTFILES.in
tests/guix-system.sh