aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/file-systems.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-07-17 19:24:15 +0200
committerLudovic Courtès <ludo@gnu.org>2015-07-17 19:24:15 +0200
commite51710d1efd406890285907876ad20ec787394b3 (patch)
tree4aa1a9f5cbc11851651037be1580c56c0a69b871 /gnu/system/file-systems.scm
parent97121c2a2189c0880cfb4c9a7eb8efd3b6e1c16e (diff)
downloadguix-e51710d1efd406890285907876ad20ec787394b3.tar
guix-e51710d1efd406890285907876ad20ec787394b3.tar.gz
file-systems: Add a 'dependencies' field to <file-system>.
* gnu/system/file-systems.scm (<file-system>)[dependencies]: New field. * gnu/system.scm (other-file-system-services)[requirements]: Honor 'file-system-dependencies'. * doc/guix.texi (File Systems): Document it.
Diffstat (limited to 'gnu/system/file-systems.scm')
-rw-r--r--gnu/system/file-systems.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm
index 0f3e6fbcaa..a3230dce48 100644
--- a/gnu/system/file-systems.scm
+++ b/gnu/system/file-systems.scm
@@ -37,6 +37,7 @@
file-system-options
file-system-check?
file-system-create-mount-point?
+ file-system-dependencies
file-system->spec
string->uuid
@@ -97,7 +98,10 @@
(check? file-system-check? ; Boolean
(default #t))
(create-mount-point? file-system-create-mount-point? ; Boolean
- (default #f)))
+ (default #f))
+ (dependencies file-system-dependencies ; list of strings (mount
+ ; points depended on)
+ (default '())))
(define-inlinable (file-system-needed-for-boot? fs)
"Return true if FS has the 'needed-for-boot?' flag set, or if it's the root