guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: guix system: Write the GC root on the target file system.


From: Ludovic Courtès
Subject: 02/02: guix system: Write the GC root on the target file system.
Date: Tue, 08 Mar 2016 10:11:38 +0000

civodul pushed a commit to branch master
in repository guix.

commit 16210486e6bb2e7b81e0208e42584b1eed826cd0
Author: Ludovic Courtès <address@hidden>
Date:   Tue Mar 8 11:03:02 2016 +0100

    guix system: Write the GC root on the target file system.
    
    Fixes <http://bugs.gnu.org/22802>.
    Reported by Jookia <address@hidden>.
    
    * guix/scripts/system.scm (install-grub*): Prepend TARGET to GC-ROOT.
---
 guix/scripts/system.scm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 9f56a96..8ebeb4d 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -128,7 +128,8 @@ TARGET, and register them."
 (define (install-grub* grub.cfg device target)
   "This is a variant of 'install-grub' with error handling, lifted in
 %STORE-MONAD"
-  (let* ((gc-root      (string-append %gc-roots-directory "/grub.cfg"))
+  (let* ((gc-root      (string-append target %gc-roots-directory
+                                      "/grub.cfg"))
          (temp-gc-root (string-append gc-root ".new"))
          (delete-file  (lift1 delete-file %store-monad))
          (make-symlink (lift2 switch-symlinks %store-monad))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]