vm: Make UUID computation really deterministic.
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Sep 2018 07:50:26 +0000 (09:50 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Sep 2018 09:40:05 +0000 (11:40 +0200)
commit1540075c790dfaeff52c93392f2fc63b9e23b77e
treedc9c011af6bd8a6cdde92f84e0eb5ed9da957c6e
parent0012e0dd5642fbbb8ee40a68f65afc184952fc98
vm: Make UUID computation really deterministic.

Fixes <https://bugs.gnu.org/32652>.

* gnu/system/vm.scm (operating-system-uuid)[service-name,
file-system-digest]: New procedures.
Map these over services and file systems and hash the result.
* tests/guix-system.sh: Add test.
gnu/system/vm.scm
tests/guix-system.sh