Interview Prep/Linux/Packages, kernel and boot

A new server must load a third-party kernel module (e.g. a storage driver) on boot. How?

BeginnerScenarioPackages, kernel and boot
Answer

Situation read → Install the module package, configure autoload.

What I'd do →

sudo modprobe vendor_drv
lsmod | grep vendor_drv
echo vendor_drv | sudo tee /etc/modules-load.d/vendor_drv.conf
echo 'options vendor_drv queue_depth=64' | sudo tee /etc/modprobe.d/vendor_drv.conf

Prefer DKMS or kmod packages so the module rebuilds for new kernels.

Why → /etc/modules-load.d/ is read by systemd-modules-load at boot.

Interview tip → With Secure Boot, unsigned modules won't load; mention MOK signing.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot