diff options
| author | Hilton Chain <hako@ultrarare.space> | 2024-09-26 15:05:28 +0800 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-03-05 14:23:42 +0900 |
| commit | e88018be70ffb8ea35819a4c95d44ec20868ca59 (patch) | |
| tree | 40dfd628aed9cc8bf0548de3c8e91af8ed799e38 /gnu/services.scm | |
| parent | c695de0d04f16c2f21d2386823b3c2a3ad2f7517 (diff) | |
file-systems: %base-file-systems: Add tmpfs /run.
* gnu/system/file-systems (%runtime-variable-data): New variable.
(%base-file-systems): Add it.
* doc/guix.texi (File Systems): Document it.
* gnu/services.scm (cleanup-gexp): Adjust accordingly.
Change-Id: I3a95e49d396fbb2577026aefc247cfe996c5f267
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/services.scm')
| -rw-r--r-- | gnu/services.scm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gnu/services.scm b/gnu/services.scm index 8a4002e0724..ea855ad1937 100644 --- a/gnu/services.scm +++ b/gnu/services.scm | |||
| @@ -632,7 +632,7 @@ information is missing, return the empty list (for channels) and possibly | |||
| 632 | #~(begin | 632 | #~(begin |
| 633 | (use-modules (guix build utils)) | 633 | (use-modules (guix build utils)) |
| 634 | 634 | ||
| 635 | ;; Clean out /tmp, /var/run, and /run. | 635 | ;; Clean out /tmp and /var/run. |
| 636 | ;; | 636 | ;; |
| 637 | ;; XXX This needs to happen before service activations, so it | 637 | ;; XXX This needs to happen before service activations, so it |
| 638 | ;; has to be here, but this also implicitly assumes that /tmp | 638 | ;; has to be here, but this also implicitly assumes that /tmp |
| @@ -663,15 +663,12 @@ information is missing, return the empty list (for channels) and possibly | |||
| 663 | (setlocale LC_CTYPE "en_US.utf8") | 663 | (setlocale LC_CTYPE "en_US.utf8") |
| 664 | (delete-file-recursively "/tmp") | 664 | (delete-file-recursively "/tmp") |
| 665 | (delete-file-recursively "/var/run") | 665 | (delete-file-recursively "/var/run") |
| 666 | (delete-file-recursively "/run") | ||
| 667 | 666 | ||
| 668 | ;; Note: The second argument to 'mkdir' is and'ed with umask, | 667 | ;; Note: The second argument to 'mkdir' is and'ed with umask, |
| 669 | ;; hence the 'chmod' calls. | 668 | ;; hence the 'chmod' calls. |
| 670 | (mkdir "/tmp" #o1777) | 669 | (mkdir "/tmp" #o1777) |
| 671 | (chmod "/tmp" #o1777) | 670 | (chmod "/tmp" #o1777) |
| 672 | (mkdir "/var/run" #o755) | 671 | (mkdir "/var/run" #o755) |
| 673 | (chmod "/var/run" #o755) | ||
| 674 | (mkdir "/run" #o755) | ||
| 675 | (chmod "/var/run" #o755)))))) | 672 | (chmod "/var/run" #o755)))))) |
| 676 | 673 | ||
| 677 | (define cleanup-service-type | 674 | (define cleanup-service-type |
