[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: vm: Allow control of deduplication in root-partition-initializer.
From: |
Chris Marusich |
Subject: |
02/06: vm: Allow control of deduplication in root-partition-initializer. |
Date: |
Fri, 23 Mar 2018 22:04:28 -0400 (EDT) |
marusich pushed a commit to branch master
in repository guix.
commit af81311b8c7712db207927c8e7b8ed66602be5c7
Author: Chris Marusich <address@hidden>
Date: Thu Mar 15 05:09:11 2018 +0100
vm: Allow control of deduplication in root-partition-initializer.
* gnu/build/vm.scm (root-partition-initializer): Add #:deduplicate?
keyword argument.
---
gnu/build/vm.scm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 7f6801b..4268ad1 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2016, 2017 Leo Famulari <address@hidden>
;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
;;; Copyright © 2017 Marius Bakke <address@hidden>
+;;; Copyright © 2018 Chris Marusich <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -307,11 +308,14 @@ it, run its initializer, and unmount it."
(define* (root-partition-initializer #:key (closures '())
copy-closures?
(register-closures? #t)
- system-directory)
+ system-directory
+ (deduplicate? #t))
"Return a procedure to initialize a root partition.
-If REGISTER-CLOSURES? is true, register all of CLOSURES is the partition's
-store. If COPY-CLOSURES? is true, copy all of CLOSURES to the partition.
+If REGISTER-CLOSURES? is true, register all of CLOSURES in the partition's
+store. If DEDUPLICATE? is true, then also deduplicate files common to
+CLOSURES and the rest of the store when registering the closures. If
+COPY-CLOSURES? is true, copy all of CLOSURES to the partition.
SYSTEM-DIRECTORY is the name of the directory of the 'system' derivation."
(lambda (target)
(define target-store
@@ -336,7 +340,8 @@ SYSTEM-DIRECTORY is the name of the directory of the
'system' derivation."
(display "registering closures...\n")
(for-each (lambda (closure)
(register-closure target
- (string-append "/xchg/" closure)))
+ (string-append "/xchg/" closure)
+ #:deduplicate? deduplicate?))
closures)
(unless copy-closures?
(umount target-store)))
- branch master updated (24fa6bc -> 8e88f6f), Chris Marusich, 2018/03/23
- 02/06: vm: Allow control of deduplication in root-partition-initializer.,
Chris Marusich <=
- 03/06: gnu: When building in a VM, share a temporary directory., Chris Marusich, 2018/03/23
- 06/06: tests: Add tests for "guix system disk-image" et al., Chris Marusich, 2018/03/23
- 01/06: tests: Add tests for "guix pack"., Chris Marusich, 2018/03/23
- 05/06: system: Add "guix system docker-image" command., Chris Marusich, 2018/03/23
- 04/06: guix: Rewrite build-docker-image to allow more paths., Chris Marusich, 2018/03/23