summaryrefslogtreecommitdiff
path: root/gnu/system/linux-initrd.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/system/linux-initrd.scm')
-rw-r--r--gnu/system/linux-initrd.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm
index 99df8cd185a..afbfc692d3a 100644
--- a/gnu/system/linux-initrd.scm
+++ b/gnu/system/linux-initrd.scm
@@ -206,6 +206,7 @@ initrd code."
206 qemu-networking? 206 qemu-networking?
207 virtio? 207 virtio?
208 volatile-root? 208 volatile-root?
209 (extra-modules '())
209 guile-modules-in-chroot?) 210 guile-modules-in-chroot?)
210 "Return a monadic derivation that builds a generic initrd. FILE-SYSTEMS is 211 "Return a monadic derivation that builds a generic initrd. FILE-SYSTEMS is
211a list of file-systems to be mounted by the initrd, possibly in addition to 212a list of file-systems to be mounted by the initrd, possibly in addition to
@@ -218,6 +219,11 @@ be used as a QEMU guest with para-virtualized I/O drivers.
218When VOLATILE-ROOT? is true, the root file system is writable but any changes 219When VOLATILE-ROOT? is true, the root file system is writable but any changes
219to it are lost. 220to it are lost.
220 221
222The initrd is automatically populated with all the kernel modules necessary
223for FILE-SYSTEMS and for the given options. However, additional kernel
224modules can be listed in EXTRA-MODULES. They will be added to the initrd, and
225loaded at boot time in the order in which they appear.
226
221When GUILE-MODULES-IN-CHROOT? is true, make core Guile modules available in 227When GUILE-MODULES-IN-CHROOT? is true, make core Guile modules available in
222the new root. This is necessary is the file specified as '--load' needs 228the new root. This is necessary is the file specified as '--load' needs
223access to these modules (which is the case if it wants to even just print an 229access to these modules (which is the case if it wants to even just print an
@@ -252,7 +258,8 @@ exception and backtrace!)."
252 '()) 258 '())
253 ,@(if volatile-root? 259 ,@(if volatile-root?
254 '("fuse.ko") 260 '("fuse.ko")
255 '()))) 261 '())
262 ,@extra-modules))
256 263
257 (define helper-packages 264 (define helper-packages
258 ;; Packages to be copied on the initrd. 265 ;; Packages to be copied on the initrd.