mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
pack: Create /tmp in Apptainer images.
Related to <https://bugs.gnu.org/37161> and <https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7979a287f8eb84cbbfa44629951572408939a756>. * guix/scripts/pack.scm (squashfs-image)[build]: Add /tmp to the set of directories created. * tests/pack.scm ("squashfs-image + localstatedir"): Check for /tmp. Change-Id: I576aaa6ba8cb8478acf4c3144d492ae5caf411ca Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
45cfc7a8f3
commit
7893b32ef6
2 changed files with 3 additions and 1 deletions
|
@ -493,7 +493,8 @@ (define (mksquashfs args)
|
||||||
"-p" "/proc d 555 0 0"
|
"-p" "/proc d 555 0 0"
|
||||||
"-p" "/sys d 555 0 0"
|
"-p" "/sys d 555 0 0"
|
||||||
"-p" "/dev d 555 0 0"
|
"-p" "/dev d 555 0 0"
|
||||||
"-p" "/home d 555 0 0"))
|
"-p" "/home d 555 0 0"
|
||||||
|
"-p" "/tmp d 555 0 0"))
|
||||||
|
|
||||||
(when database
|
(when database
|
||||||
;; Initialize /var/guix.
|
;; Initialize /var/guix.
|
||||||
|
|
|
@ -328,6 +328,7 @@ (define bin
|
||||||
(when (and (file-exists? (string-append bin
|
(when (and (file-exists? (string-append bin
|
||||||
"/guile"))
|
"/guile"))
|
||||||
(file-exists? "var/guix/db/db.sqlite")
|
(file-exists? "var/guix/db/db.sqlite")
|
||||||
|
(file-is-directory? "tmp")
|
||||||
(string=? (string-append #$%bootstrap-guile "/bin")
|
(string=? (string-append #$%bootstrap-guile "/bin")
|
||||||
(pk 'binlink (readlink bin)))
|
(pk 'binlink (readlink bin)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue