mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
install: 'cow-store' now bind-mounts the target's /tmp.
Reported by Matthew Jordan <matthewjordandevops@yandex.com> 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.
This commit is contained in:
parent
405d043ddd
commit
0adabad72d
1 changed files with 5 additions and 0 deletions
|
@ -145,6 +145,11 @@ (define (set-store-permissions directory)
|
|||
(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"
|
||||
|
|
Loading…
Reference in a new issue