bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

kernel: Disable drivers for USB-attached network interfaces

Open markusboehme opened this issue 3 years ago • 2 comments

Issue number: n/a

Description of changes: There is no need to support USB-attached network interfaces in the cloud, and such devices are equally unlikely to be encountered in servers. Make sure not to build any drivers for them as they would just be dead weight.

We had those drivers for the 5.4 kernel variants (last aws-k8s-1.19, now gone) already and picked them up for the 5.10 kernel variants (any variants except *-dev) with release 1.9.0. This reverses course for the 5.10 kernel and ensures future upstream changes won't bring those drivers into the 5.15 kernel.

Testing done:

  • [x] Builds and boots
  • [x] Config differences in final builds are only those expected

The full list of resulting config changes can be found in this Gist.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

markusboehme avatar Aug 10 '22 14:08 markusboehme

Do we still want these for metal and homelab types of deployments? They may be needed for those types of hardware setups.

cc @mchaker

stmcginnis avatar Aug 10 '22 14:08 stmcginnis

In the case of a homelab variant, a separate kernel config would be necessary -- there would be a lot of hardware to support that shouldn't weigh down the official metal variant kernel config.

mchaker avatar Aug 10 '22 14:08 mchaker