guix-commits
[Top][All Lists]
Advanced

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

02/02: install: 'cow-store' now bind-mounts the target's /tmp.


From: Ludovic Courtès
Subject: 02/02: install: 'cow-store' now bind-mounts the target's /tmp.
Date: Tue, 31 May 2016 21:39:21 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 0adabad72d58492f08975af0b6b837ebde32a51b
Author: Ludovic Courtès <address@hidden>
Date:   Tue May 31 22:51:07 2016 +0200

    install: 'cow-store' now bind-mounts the target's /tmp.
    
    Reported by Matthew Jordan <address@hidden>
    at <https://lists.gnu.org/archive/html/guix-devel/2016-05/msg00967.html>.
    
    * gnu/system/install.scm (make-cow-store): Bind-mount TARGET's /tmp
    on /tmp.
---
 gnu/system/install.scm |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 07ad3cb..a72613e 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -145,6 +145,11 @@ current store is on a RAM disk."
         (chmod #$directory #o1775)))
 
   #~(begin
+      ;; Bind-mount TARGET's /tmp in case we need space to build things.
+      (let ((tmpdir (string-append #$target "/tmp")))
+        (mkdir-p tmpdir)
+        (mount tmpdir "/tmp" "none" MS_BIND))
+
       (unless (file-exists? "/.ro-store")
         (mkdir "/.ro-store")
         (mount #$(%store-prefix) "/.ro-store" "none"



reply via email to

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