|
1 | 1 | __author__ = 'desultory' |
2 | | -__version__ = '0.9.1' |
| 2 | +__version__ = '1.0.0' |
3 | 3 |
|
4 | 4 | from pathlib import Path |
5 | 5 | from subprocess import run |
@@ -206,22 +206,24 @@ def calculate_modules(self) -> None: |
206 | 206 | Populates the kernel_modules list with all required kernel modules. |
207 | 207 | If kmod_autodetect_lsmod is set, adds the contents of lsmod if specified. |
208 | 208 | If kmod_autodetect_lspci is set, adds the contents of lspci -k if specified. |
| 209 | + Autodetected modules are added to kmod_init |
| 210 | +
|
209 | 211 | Adds the contents of _kmod_depend if specified. |
210 | 212 | Performs dependency resolution on all kernel modules. |
211 | 213 | """ |
212 | 214 | if self.config_dict['kmod_autodetect_lsmod']: |
213 | 215 | autodetected_modules = get_lsmod_modules(self) |
214 | 216 | self.logger.info("Autodetected kernel modules from lsmod: %s" % autodetected_modules) |
215 | | - self.config_dict['kernel_modules'] = autodetected_modules |
| 217 | + self.config_dict['kmod_init'] = autodetected_modules |
216 | 218 |
|
217 | 219 | if self.config_dict['kmod_autodetect_lspci']: |
218 | 220 | autodetected_modules = get_lspci_modules(self) |
219 | 221 | self.logger.info("Autodetected kernel modules from lscpi -k: %s" % autodetected_modules) |
220 | | - self.config_dict['kernel_modules'] = autodetected_modules |
| 222 | + self.config_dict['kmod_init'] = autodetected_modules |
221 | 223 |
|
222 | 224 | if self.config_dict['_kmod_depend']: |
223 | 225 | self.logger.info("Adding internal dependencies to kmod_init: %s" % self.config_dict['_kmod_depend']) |
224 | | - self.config_dict['kmod_init'] = self.config_dict['_kmod_depend'].copy() # Copy because _kmood_depend may shrink during iteration |
| 226 | + self.config_dict['kmod_init'] = self.config_dict['_kmod_depend'].copy() # Copy because _kmod_depend may shrink during iteration |
225 | 227 |
|
226 | 228 | self.logger.info("Included kernel modules: %s" % self.config_dict['kernel_modules']) |
227 | 229 |
|
|
0 commit comments