Skip to content

Commit

Permalink
install: comment on driver package->component mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dbungert committed Feb 25, 2025
1 parent 34e409e commit 20a094c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subiquity/server/controllers/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,11 @@ def kernel_components(self) -> List[str]:
info: VariationInfo = self.app.controllers.Filesystem._info
kernel_components = info.available_kernel_components
nvidia_driver_offered: bool = False
# so here we make the jump from the `ubuntu-drivers` recommendation and
# map that, as close as we can, to kernel components. Currently just
# handling nvidia. Note that it's highly likely that the version
# offered in archive will be newer than what is offered by pc-kernel
# (570 in plucky archive vs 550 in noble pc-kernel at time of writing).
# for first pass, accept the matching version, if that's an option
for driver in sorted(self.app.controllers.Drivers.drivers, reverse=True):
m = re.fullmatch("nvidia-driver-([0-9]+)", driver)
Expand Down

0 comments on commit 20a094c

Please sign in to comment.