diff options
| author | Lars Bilke <lars.bilke@ufz.de> | 2024-06-14 15:23:48 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-07-10 16:00:36 +0200 |
| commit | 7893b32ef6ec85d51f082681a9f4fa911867afba (patch) | |
| tree | 5f513d27c9c5c0f4e33a0ecf3e2805768eefebe2 | |
| parent | 45cfc7a8f359e167ccf020d8a089d8a9b7606042 (diff) | |
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>
| -rw-r--r-- | guix/scripts/pack.scm | 3 | ||||
| -rw-r--r-- | tests/pack.scm | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index fe4df042d74..7c5fe76fe0b 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm | |||
| @@ -493,7 +493,8 @@ added to the pack." | |||
| 493 | "-p" "/proc d 555 0 0" | 493 | "-p" "/proc d 555 0 0" |
| 494 | "-p" "/sys d 555 0 0" | 494 | "-p" "/sys d 555 0 0" |
| 495 | "-p" "/dev d 555 0 0" | 495 | "-p" "/dev d 555 0 0" |
| 496 | "-p" "/home d 555 0 0")) | 496 | "-p" "/home d 555 0 0" |
| 497 | "-p" "/tmp d 555 0 0")) | ||
| 497 | 498 | ||
| 498 | (when database | 499 | (when database |
| 499 | ;; Initialize /var/guix. | 500 | ;; Initialize /var/guix. |
diff --git a/tests/pack.scm b/tests/pack.scm index 40897a55895..f8a9e09c284 100644 --- a/tests/pack.scm +++ b/tests/pack.scm | |||
| @@ -328,6 +328,7 @@ | |||
| 328 | (when (and (file-exists? (string-append bin | 328 | (when (and (file-exists? (string-append bin |
| 329 | "/guile")) | 329 | "/guile")) |
| 330 | (file-exists? "var/guix/db/db.sqlite") | 330 | (file-exists? "var/guix/db/db.sqlite") |
| 331 | (file-is-directory? "tmp") | ||
| 331 | (string=? (string-append #$%bootstrap-guile "/bin") | 332 | (string=? (string-append #$%bootstrap-guile "/bin") |
| 332 | (pk 'binlink (readlink bin))) | 333 | (pk 'binlink (readlink bin))) |
| 333 | 334 | ||
