You need to rebuild the initramfs after adding a storage driver required for boot. How?
IntermediateScenarioPackages, kernel and boot
Answer
Situation read → Boot-critical drivers must be in the initramfs.
What I'd do →
- RHEL:
echo 'add_drivers+=" vendor_drv "' | sudo tee /etc/dracut.conf.d/vendor.confthensudo dracut -f --kver $(uname -r). - Debian/Ubuntu: add
vendor_drvto/etc/initramfs-tools/modulesthensudo update-initramfs -u -k all. - Check:
lsinitrd | grep vendor_drvorlsinitramfs /boot/initrd.img-$(uname -r) | grep vendor_drv.
Why → If the root disk driver isn't in the initramfs, the kernel can't find root and drops to a dracut shell.
Interview tip → Also needed when moving a VM to hardware with different storage controllers.
More on Packages, kernel and boot
You must upgrade the kernel on 50 production servers and be able to roll back if the new kernel misbehaves. Plan it.AdvancedYou need to pin a package version so routine updates don't upgrade it (e.g. Docker or PostgreSQL). How?BeginnerA package update broke an application. How do you roll it back?IntermediateYour servers can't reach the internet but need packages. How do you provide repositories?IntermediateYou need to compile and install software from source on a server that also uses packages. How do you avoid making a mess?IntermediateYou need to change kernel boot parameters (e.g. add `transparent_hugepage=never`) persistently. How?Intermediate