diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-03-08 11:03:02 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-08 11:11:28 +0100 |
commit | 16210486e6bb2e7b81e0208e42584b1eed826cd0 (patch) | |
tree | 3e75eedf132bd643657ceb0237e3663934a44b88 | |
parent | 16f4acbddbb38275a52554caf693017465586ac6 (diff) | |
download | patches-16210486e6bb2e7b81e0208e42584b1eed826cd0.tar patches-16210486e6bb2e7b81e0208e42584b1eed826cd0.tar.gz |
guix system: Write the GC root on the target file system.
Fixes <http://bugs.gnu.org/22802>.
Reported by Jookia <166291@gmail.com>.
* guix/scripts/system.scm (install-grub*): Prepend TARGET to GC-ROOT.
-rw-r--r-- | 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 9f56a96ca0..8ebeb4d595 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)) |