summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2023-07-27 13:59:08 +0200
committerLudovic Courtès <ludo@gnu.org>2023-09-17 15:31:04 +0200
commitd4da1f26e1c3fdb2b5d1d8f67ebd195d119fa964 (patch)
tree4c511f360fbb639419325e77efe022a098e30f69
parentd2a751c14eac664e32c79613f09cf146504d433f (diff)
gnu: file-systems: Add variable %base-live-file-systems.
* gnu/system/file-systems.scm (%base-live-file-systems): New variable. * gnu/system/install.scm (installation-os): Use %base-live-file-systems. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/system/file-systems.scm21
-rw-r--r--gnu/system/install.scm17
2 files changed, 22 insertions, 16 deletions
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
index 95b757a698d..529f1536dea 100644
--- a/gnu/system/file-systems.scm
+++ b/gnu/system/file-systems.scm
@@ -85,6 +85,7 @@
85 %elogind-file-systems 85 %elogind-file-systems
86 86
87 %base-file-systems 87 %base-file-systems
88 %base-live-file-systems
88 %container-file-systems 89 %container-file-systems
89 90
90 <file-system-mapping> 91 <file-system-mapping>
@@ -495,6 +496,26 @@ TARGET in the other system."
495 %efivars-file-system 496 %efivars-file-system
496 %immutable-store)) 497 %immutable-store))
497 498
499(define %base-live-file-systems
500 ;; This is the bare minimum to use live file-systems.
501 ;; Used in installation-os.
502 (list (file-system
503 (mount-point "/")
504 (device (file-system-label "Guix_image"))
505 (type "ext4"))
506
507 ;; Make /tmp a tmpfs instead of keeping the overlayfs. This
508 ;; originally was used for unionfs because FUSE creates
509 ;; '.fuse_hiddenXYZ' files for each open file, and this confuses
510 ;; Guix's test suite, for instance (see
511 ;; <http://bugs.gnu.org/23056>). We keep this for overlayfs to be
512 ;; on the safe side.
513 (file-system
514 (mount-point "/tmp")
515 (device "none")
516 (type "tmpfs")
517 (check? #f))))
518
498;; File systems for Linux containers differ from %base-file-systems in that 519;; File systems for Linux containers differ from %base-file-systems in that
499;; they impose additional restrictions such as no-exec or need different 520;; they impose additional restrictions such as no-exec or need different
500;; options to function properly. 521;; options to function properly.
diff --git a/gnu/system/install.scm b/gnu/system/install.scm
index 7a68c196069..28161de153c 100644
--- a/gnu/system/install.scm
+++ b/gnu/system/install.scm
@@ -517,22 +517,7 @@ Access documentation at any time by pressing Alt-F2.\x1b[0m
517 (file-systems 517 (file-systems
518 ;; Note: the disk image build code overrides this root file system with 518 ;; Note: the disk image build code overrides this root file system with
519 ;; the appropriate one. 519 ;; the appropriate one.
520 (cons* (file-system 520 (append %base-live-file-systems
521 (mount-point "/")
522 (device (file-system-label "Guix_image"))
523 (type "ext4"))
524
525 ;; Make /tmp a tmpfs instead of keeping the overlayfs. This
526 ;; originally was used for unionfs because FUSE creates
527 ;; '.fuse_hiddenXYZ' files for each open file, and this confuses
528 ;; Guix's test suite, for instance (see
529 ;; <http://bugs.gnu.org/23056>). We keep this for overlayfs to be
530 ;; on the safe side.
531 (file-system
532 (mount-point "/tmp")
533 (device "none")
534 (type "tmpfs")
535 (check? #f))
536 521
537 ;; XXX: This should be %BASE-FILE-SYSTEMS but we don't need 522 ;; XXX: This should be %BASE-FILE-SYSTEMS but we don't need
538 ;; elogind's cgroup file systems. 523 ;; elogind's cgroup file systems.