diff options
Diffstat (limited to 'gnu/system/linux-initrd.scm')
| -rw-r--r-- | gnu/system/linux-initrd.scm | 9 |
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 |
| 211 | a list of file-systems to be mounted by the initrd, possibly in addition to | 212 | a 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. | |||
| 218 | When VOLATILE-ROOT? is true, the root file system is writable but any changes | 219 | When VOLATILE-ROOT? is true, the root file system is writable but any changes |
| 219 | to it are lost. | 220 | to it are lost. |
| 220 | 221 | ||
| 222 | The initrd is automatically populated with all the kernel modules necessary | ||
| 223 | for FILE-SYSTEMS and for the given options. However, additional kernel | ||
| 224 | modules can be listed in EXTRA-MODULES. They will be added to the initrd, and | ||
| 225 | loaded at boot time in the order in which they appear. | ||
| 226 | |||
| 221 | When GUILE-MODULES-IN-CHROOT? is true, make core Guile modules available in | 227 | When GUILE-MODULES-IN-CHROOT? is true, make core Guile modules available in |
| 222 | the new root. This is necessary is the file specified as '--load' needs | 228 | the new root. This is necessary is the file specified as '--load' needs |
| 223 | access to these modules (which is the case if it wants to even just print an | 229 | access 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. |
