file-systems: Allow users to specify file system UUIDs as strings.
commit661a1d7924e174a28e0e21bf516aa1a8a44dad73
authorLudovic Courtès <ludo@gnu.org>
Tue, 14 Jul 2015 13:06:46 +0000 (14 15:06 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 14 Jul 2015 13:24:20 +0000 (14 15:24 +0200)
treee794ceca18881f189fa0be3a2477cf7a9ccd0182
parent0ec5ee94861980a6957d210adf1903ea96202dd9
file-systems: Allow users to specify file system UUIDs as strings.

Fixes <http://bugs.gnu.org/19778>.
Reported by Mark H Weaver <mhw@netris.org>.

* gnu/system/file-systems.scm (%uuid-rx): New variable.
  (string->uuid): New procedure.
  (uuid): New macro.
* tests/file-systems.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
* doc/guix.texi (File Systems): Give an example of UUID.
Makefile.am
doc/guix.texi
gnu/system/file-systems.scm
tests/file-systems.scm [new file with mode: 0644]