diff options
| author | Hilton Chain <hako@ultrarare.space> | 2022-11-12 21:59:26 +0800 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-11-18 15:44:38 +0100 |
| commit | a6da50d60a2cc3d0f218e38cbc197011b8151554 (patch) | |
| tree | 969d671775c4f966a2b1d8bb72f29a910f883f54 /gnu/system/linux-initrd.scm | |
| parent | 383b0f05904c5dac8238eeff96ca16873d9c5984 (diff) | |
linux-initrd: raw-initrd: Add keyword argument #:pre-mount.
* gnu/system/linux-initrd.scm (raw-initrd): Add keyword argument #:pre-mount.
Document it.
* doc/guix.texi (initial RAM disk): Likewise.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/system/linux-initrd.scm')
| -rw-r--r-- | gnu/system/linux-initrd.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 4c4c78e4440..58e95a1312b 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm | |||
| @@ -172,6 +172,7 @@ MODULES and taken from LINUX." | |||
| 172 | #:key | 172 | #:key |
| 173 | (linux linux-libre) | 173 | (linux linux-libre) |
| 174 | (linux-modules '()) | 174 | (linux-modules '()) |
| 175 | (pre-mount #t) | ||
| 175 | (mapped-devices '()) | 176 | (mapped-devices '()) |
| 176 | (keyboard-layout #f) | 177 | (keyboard-layout #f) |
| 177 | (helper-packages '()) | 178 | (helper-packages '()) |
| @@ -183,7 +184,8 @@ modules taken from LINUX. FILE-SYSTEMS is a list of file-systems to be | |||
| 183 | mounted by the initrd, possibly in addition to the root file system specified | 184 | mounted by the initrd, possibly in addition to the root file system specified |
| 184 | on the kernel command line via 'root'. LINUX-MODULES is a list of kernel | 185 | on the kernel command line via 'root'. LINUX-MODULES is a list of kernel |
| 185 | modules to be loaded at boot time. MAPPED-DEVICES is a list of device | 186 | modules to be loaded at boot time. MAPPED-DEVICES is a list of device |
| 186 | mappings to realize before FILE-SYSTEMS are mounted. | 187 | mappings to realize before FILE-SYSTEMS are mounted. PRE-MOUNT is a |
| 188 | G-expression to evaluate before realizing MAPPED-DEVICES. | ||
| 187 | HELPER-PACKAGES is a list of packages to be copied in the initrd. It may include | 189 | HELPER-PACKAGES is a list of packages to be copied in the initrd. It may include |
| 188 | e2fsck/static or other packages needed by the initrd to check root partition. | 190 | e2fsck/static or other packages needed by the initrd to check root partition. |
| 189 | 191 | ||
| @@ -255,7 +257,8 @@ upon error." | |||
| 255 | (map spec->file-system | 257 | (map spec->file-system |
| 256 | '#$(map file-system->spec file-systems)) | 258 | '#$(map file-system->spec file-systems)) |
| 257 | #:pre-mount (lambda () | 259 | #:pre-mount (lambda () |
| 258 | (and #$@device-mapping-commands | 260 | (and #$pre-mount |
| 261 | #$@device-mapping-commands | ||
| 259 | #$@file-system-scan-commands)) | 262 | #$@file-system-scan-commands)) |
| 260 | #:linux-modules '#$linux-modules | 263 | #:linux-modules '#$linux-modules |
| 261 | #:linux-module-directory '#$kodir | 264 | #:linux-module-directory '#$kodir |
