summaryrefslogtreecommitdiff
path: root/gnu/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-06-26 11:34:28 +0200
committerLudovic Courtès <ludo@gnu.org>2018-06-26 14:27:57 +0200
commita7751eeb574e92b7d629e00f71a4207a52a3a62e (patch)
tree08a1b95d24ccc8419d963f02ff34aa2ea7b1ae5a /gnu/build
parent790c3e019a5410018bd31596c2dcda5d0efb0d36 (diff)
downloadpatches-a7751eeb574e92b7d629e00f71a4207a52a3a62e.tar
patches-a7751eeb574e92b7d629e00f71a4207a52a3a62e.tar.gz
vm: Don't try to modify the bind-mounted store.
Previously 'guix system disk-image --file-system-type=iso9660' would fail because 'register-closure' would try to reset timestamps/ownership on the bind-mounted store, which fails with EPERM. * gnu/build/vm.scm (make-iso9660-image): Pass #:reset-timestamps? to 'register-closure'.
Diffstat (limited to 'gnu/build')
-rw-r--r--gnu/build/vm.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 73d0191de7..312500de88 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -420,8 +420,10 @@ GRUB configuration and OS-DRV as the stuff in it."
(register-closure
"/tmp/root"
(string-append "/xchg/" closure)
- ;; XXX: Using deduplication causes cross device link errors.
- #:deduplicate? #f))
+ ;; TARGET-STORE is a read-only bind-mount so we shouldn't try
+ ;; to modify it.
+ #:deduplicate? #f
+ #:reset-timestamps? #f))
closures))
(apply invoke