diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-18 19:11:53 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-18 22:27:22 +0200 |
commit | 15d299874c635d14a84710005d0ed4b05968ff6f (patch) | |
tree | f3995eeb77879b8e47dd87b54d27bff81f720575 /guix/build/vm.scm | |
parent | 1691b4cdc619caf47700eef22023066985afb877 (diff) | |
download | guix-patches-15d299874c635d14a84710005d0ed4b05968ff6f.tar guix-patches-15d299874c635d14a84710005d0ed4b05968ff6f.tar.gz |
vm: Avoid resetting timestamps twice.
* guix/build/vm.scm (initialize-hard-disk): Don't call
'reset-timestamps' when REGISTER-CLOSURES? is true.
* guix/build/install.scm (register-closure): Mention timestamps in
docstring.
Diffstat (limited to 'guix/build/vm.scm')
-rw-r--r-- | guix/build/vm.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/build/vm.scm b/guix/build/vm.scm index b9bb66cdb7..e67b431b5a 100644 --- a/guix/build/vm.scm +++ b/guix/build/vm.scm @@ -211,7 +211,10 @@ further populate the partition." (unless (install-grub grub.cfg "/dev/sda" target-directory) (error "failed to install GRUB")) - (reset-timestamps target-directory) + ;; 'guix-register' resets timestamps and everything, so no need to do it + ;; once more in that case. + (unless register-closures? + (reset-timestamps target-directory)) (zero? (system* "umount" target-directory))) |