summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-11-11 23:48:53 +0100
committerLudovic Courtès <ludo@gnu.org>2018-11-11 23:53:29 +0100
commit6c843907e90c9f6a1af389f9624cac8b6b01ecbb (patch)
tree28f09ce730429d5992cd331aead50e7b2913ed3d /tests
parent652163154c06b47936a453f44ea35938789718de (diff)
downloadguix-6c843907e90c9f6a1af389f9624cac8b6b01ecbb.tar.gz
guix system: Invoking 'guix system init' twice keeps timestamps zeroed.
Fixes a bug whereby running 'guix system init config.scm /mnt' twice
would, on the second run, change timestamps in /mnt/gnu/store from the
Epoch to now.  This is because the 'register-path' call would bypass the
'reset-timestamps' phase altogether in that case, as a consequence of
commit bb3b6ccb05550fbfbeb459c68819a752327d6e1e.

Reported by Christopher Baines.

* guix/scripts/system.scm (install): When TARGET/var/guix exists, delete
it.  As a side-effect, this ensures that later on, the 'register-path'
call invokes 'reset-timestamps' on all the copied store items.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions