You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+30-26Lines changed: 30 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,31 +125,6 @@ These are set at the global level and are not associated with an individual moun
125
125
*`mount_wait` (false) waits for user input before attenmpting to mount the generated fstab at `init_main`.
126
126
*`mount_timeout` timeout for `mount_wait` to automatically continue.
127
127
128
-
#### base.kmod
129
-
130
-
This module is used to embed kernel modules into the initramfs.
131
-
132
-
Modules can use `_kmod_depend` to add required modules. Simply using the `ugrd.crypto.cryptsetup` module, for example, will try to add the `dm_crypt` kmod.
133
-
134
-
The following parameters can be used to change the kernel module pulling and initializing behavior:
135
-
136
-
*`kernel_version` (uname -r) is used to specify the kernel version to pull modules for, should be a directory under `/lib/modules/<kernel_version>`.
137
-
*`kmod_init` is used to specify kernel modules to load at boot. If set, ONLY these modules will be loaded with modprobe.
138
-
*`kmod_autodetect_lspci` (false) if set to `true`, will populate `kernel_modules` with modules listed in `lspci -k`.
139
-
*`kmod_autodetect_lsmod` (false) if set to `true`, will populate `kernel_modules` with modules listed in `lsmod`.
140
-
*`kernel_modules` is used to define a list of kernel module names to pull into the initramfs. These modules will not be `modprobe`'d automatically if `kmod_init` is also set.
141
-
*`kmod_ignore` is used to specify kernel modules to ignore. If a module depends on one of these, it will throw an error and drop it from being included.
142
-
*`kmod_ignore_softdeps` (false) ignore softdeps when checking kernel module dependencies.
143
-
*`_kmod_depend` is meant to be used within modules, specifies kernel modules which should be added to `kmod_init` when that `ugrd` module is imported.
144
-
145
-
##### Kernel module helpers
146
-
147
-
Some helper modules have been created to make importing required kernel modules easier.
148
-
149
-
`base.ugrd.kmod_nvme`, `kmod_usb`, and `kmod_fat` can be used to load modules for NVME's, USB storage, and the FAT file system respectively.
150
-
151
-
Similarly `base.ugrd.kmod_novideo` and `kmod_nosound` exist to ignore video and sound devices that may appear when autodetecting modules.
152
-
153
128
#### base.console
154
129
155
130
This module creates an agetty session. This is used by the `ugrd.crypto.gpg` module so the tty can be used for input and output.
@@ -195,7 +170,36 @@ The following parameters can be set to alter CPIO functionality:
195
170
*`cpio_list_name` (cpio.list) can be used to change the filename of the CPIO list for `gen_init_cpio`.
196
171
*`_gen_init_cpio_path` The path to this tool can be specified. If not, it is included and will be built at runtime if needed.
197
172
198
-
#### base.btrfs
173
+
### Kernel modules
174
+
175
+
`ugrd.kmod.kmod` is the core of the kernel module loading..
176
+
177
+
> Modules can use `_kmod_depend` to add required modules. Simply using the `ugrd.crypto.cryptsetup` module, for example, will try to add the `dm_crypt` kmod.
178
+
179
+
#### ugrd.kmod.kmod confugration parameters
180
+
181
+
The following parameters can be used to change the kernel module pulling and initializing behavior:
182
+
183
+
*`kernel_version` (uname -r) is used to specify the kernel version to pull modules for, should be a directory under `/lib/modules/<kernel_version>`.
184
+
*`kmod_init` is used to specify kernel modules to load at boot. If set, ONLY these modules will be loaded with modprobe.
185
+
*`kmod_autodetect_lspci` (false) if set to `true`, will populate `kernel_modules` with modules listed in `lspci -k`.
186
+
*`kmod_autodetect_lsmod` (false) if set to `true`, will populate `kernel_modules` with modules listed in `lsmod`.
187
+
*`kernel_modules` is used to define a list of kernel module names to pull into the initramfs. These modules will not be `modprobe`'d automatically if `kmod_init` is also set.
188
+
*`kmod_ignore` is used to specify kernel modules to ignore. If a module depends on one of these, it will throw an error and drop it from being included.
189
+
*`kmod_ignore_softdeps` (false) ignore softdeps when checking kernel module dependencies.
190
+
*`_kmod_depend` is meant to be used within modules, specifies kernel modules which should be added to `kmod_init` when that `ugrd` module is imported.
191
+
192
+
#### Kernel module helpers
193
+
194
+
Some helper modules have been created to make importing required kernel modules easier.
195
+
196
+
`base.ugrd.kmod_nvme`, `kmod_usb`, and `kmod_fat` can be used to load modules for NVME's, USB storage, and the FAT file system respectively.
197
+
198
+
Similarly `base.ugrd.kmod_novideo` and `kmod_nosound` exist to ignore video and sound devices that may appear when autodetecting modules.
199
+
200
+
### Filesystem modules
201
+
202
+
#### fs.btrfs
199
203
200
204
Importing this module will run `btrfs device scan` and pull btrfs modules. No config is required.
0 commit comments